Class Stats

java.lang.Object
   |
   +----Stats

class Stats
extends Object
A Stats object accumulates statistics about a serious of values.


Variable Index

 o count
The number of values recorded
 o max
The maximum value recorded
 o min
The minimum value recorded
 o sum
The sum of the values

Constructor Index

 o Stats()

Method Index

 o record(double)
Record another value.
 o toString()
Report statistics about the values recorded.

Variables

 o count
 private int count
The number of values recorded

 o min
 private double min
The minimum value recorded

 o max
 private double max
The maximum value recorded

 o sum
 private double sum
The sum of the values

Constructors

 o Stats
 Stats()

Methods

 o record
 public void record(double d)
Record another value.

Parameters:
d - the value to record.
 o toString
 public String toString()
Report statistics about the values recorded.

Returns:
a string indicating the min, max, and mean of the values.
Overrides:
toString in class Object