Documentation ¶
Overview ¶
Simple package used to calculate a average and standard deviation of a series of values online, using the welford method
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Welford ¶
type Welford struct { N float64 Avg float64 StdDev float64 Var float64 // contains filtered or unexported fields }
Struct used to calculate welford's method
func (*Welford) CheckAndAddValue ¶
CheckAndAddValue adds a value to the welford online computation only if val is less than maxStdDev times the standard deviation and less than maxIat. Returns True if the value is added. False otherwise
Click to show internal directories.
Click to hide internal directories.