Log I/O
|
Class for computing running statistics on a data stream. More...
Public Member Functions | |
Object | GetMaxValue () |
Return maximum observed value. | |
double | GetMean () |
Return mean (average) value of the (actual) observations. | |
double | GetMedian () |
Return the 50% percentile (median) of the (actual) observations. | |
Object | GetMinValue () |
Return minimum observed value. | |
int | GetNActualValues () |
Return number of actual observations i.e. | |
int | GetNNoValues () |
Return number of no-values (NaN or Infinity) observed. | |
int | GetNValues () |
Return total number of observations. | |
double | GetPercentile25 () |
Return the 25% percentile of the (actual) observations. | |
double | GetPercentile75 () |
Return the 75% percentile of the (actual) observations. | |
double | GetStandardDeviation () |
Return the standard deviation of the (actual) observations. | |
double | GetSum () |
Return the sum of the (actual) observations. | |
double | GetVariance () |
Return the variance of the (actual) observations. | |
void | Push (double value) |
Include a new observation in the statistics. | |
void | Reset () |
Reset the statistics. | |
Statistics () | |
Create an instance for keeping track of running statistics. | |
override string | ToString () |
Class for computing running statistics on a data stream.
No data is cached in the class, all statistics are computed during streaming:
Statistics | ( | ) |
Create an instance for keeping track of running statistics.
Add observation values by calling the #Push method.
Object GetMaxValue | ( | ) |
Return maximum observed value.
double GetMean | ( | ) |
Return mean (average) value of the (actual) observations.
double GetMedian | ( | ) |
Return the 50% percentile (median) of the (actual) observations.
Object GetMinValue | ( | ) |
Return minimum observed value.
int GetNActualValues | ( | ) |
Return number of actual observations i.e.
all values except NaNs or infinities.
int GetNNoValues | ( | ) |
Return number of no-values (NaN or Infinity) observed.
int GetNValues | ( | ) |
Return total number of observations.
I.e. number of times the #Push method has been called.
double GetPercentile25 | ( | ) |
Return the 25% percentile of the (actual) observations.
double GetPercentile75 | ( | ) |
Return the 75% percentile of the (actual) observations.
double GetStandardDeviation | ( | ) |
Return the standard deviation of the (actual) observations.
double GetSum | ( | ) |
Return the sum of the (actual) observations.
double GetVariance | ( | ) |
Return the variance of the (actual) observations.
void Push | ( | double | value | ) |
Include a new observation in the statistics.
value | Observation to include. Double.NaN or Double.Infinity will count as no-values. |