Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type StandardDeviation ¶
type StandardDeviation struct { Name string Sum float64 Mean float64 Buckets []float64 Std float64 // σ }
StandardDeviation is the struct to calculate and store standard deviation specifically this is a population standard deviation
func NewStandardDeviation ¶
func NewStandardDeviation(name string) StandardDeviation
NewStandardDeviation creates a new standard dev object
func (*StandardDeviation) Add ¶
func (sd *StandardDeviation) Add(num float64)
Add a float64 sample to the bucket
Click to show internal directories.
Click to hide internal directories.