Documentation ¶
Index ¶
- func AbsMin(vals []float64) float64
- func Average(vals []float64) float64
- func Max(vals []float64) float64
- func Min(vals []float64) float64
- func Saturation(val, from, to float64) float64
- func Score(last float64, avg float64, std float64) float64
- func StdAverage(stds []float64, nums []int) float64
- func StdDev(vals []float64, avg float64) float64
- func Sum(vals []float64) float64
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Average ¶
Average returns the mean value of float64 values. Returns zero if the vals length is 0.
func Saturation ¶ added in v0.2.5
Saturation returns val if min <= val <= max or
return max if val > max or return min if val < min
func Score ¶ added in v0.2.5
Score returns the score of last value via 3-sigma,with an input avg and std.
states that nearly all values (99.7%) lie within the 3 standard deviations of the mean in a normal distribution.
func StdAverage ¶ added in v0.2.5
StdAverage return the pooled variance
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.