Click or drag to resize
Accumulator Methods

The Accumulator type exposes the following members.

Methods
  NameDescription
Public methodAddDataValue
Adds the specified data value to the accumulator.
Public methodCount
Returns the number of data values.
Public methodStatic memberMainTest
Demo test the Accumulator data type. Reads in a stream of real number from standard input; adds them to the accumulator; and prints the mean, sample standard deviation, and sample variance to standard output.
Public methodMean
Returns the mean of the data values.
Public methodStddev
Returns the sample standard deviation of the data values.
Public methodVar
Returns the sample variance of the data values.
Top
See Also