Documentation
¶
Overview ¶
Package f64stat calculates rudamentary statistics for a single real random variable
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Stat ¶
type Stat struct {
Sum float64
Sum2 float64
Vmin float64
Vmax float64
Count float64
Last float64 // Value of last added sample
Ema float64 // Exponential moving average
ExpWeight float64 // Exponential moving average weight
}
Stat is a container for tracking the random variable
func (*Stat) Add ¶
Add incorporates a sample into the statistical calculations It returns a pointer to the
Click to show internal directories.
Click to hide internal directories.