Class Stats

java.lang.Object
  |
  +--Stats

public class Stats
extends java.lang.Object

A Stats object accumulates statistics about a serious of values.


Constructor Summary
Stats()
           
 
Method Summary
 void record(double d)
          Record another value.
 java.lang.String toString()
          Report statistics about the values recorded.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Stats

public Stats()
Method Detail

record

public void record(double d)
Record another value.
Parameters:
d - the value to record.

toString

public java.lang.String toString()
Report statistics about the values recorded.
Overrides:
toString in class java.lang.Object
Returns:
a string indicating the min, max, and mean of the values.