Class Mean
Calculates the arithmetic mean of values added with the Add(double) method.
public class Mean
- Inheritance
-
Mean
- Inherited Members
Properties
Count
Retrieves the number of times a value was added to the mean.
public long Count { get; }
Property Value
Value
Retrieves the mean of all values added with Add(double) or 0 if there are zero added values.
public double Value { get; }
Property Value
Methods
Add(double)
Adds a value to the arithmetic mean.
public void Add(double value)
Parameters
valuedoublethe value which should be added to the arithmetic mean.
Add(double, long)
Adds a value count times to the arithmetic mean.
public void Add(double value, long count)
Parameters
valuedoublethe value which should be added to the arithmetic mean.
countlongnumber of times the value should be added to arithmetic mean.
ToString()
Returns a string that represents the current object.
public override string ToString()
Returns
- string
A string that represents the current object.