MCPcopy Create free account
hub / github.com/facebook/time / stddev

Function stddev

fbclock/daemon/math.go:108–114  ·  view source on GitHub ↗
(input []float64)

Source from the content-addressed store, hash-verified

106}
107
108func stddev(input []float64) float64 {
109 s := welford.New()
110 for _, v := range input {
111 s.Add(v)
112 }
113 return s.Stddev()
114}
115
116// convolve mixes two signals together
117func convolve(input, coeffs []float64) ([]float64, error) {

Callers 3

TestStddevFunction · 0.70
calcWMethod · 0.70
math.goFile · 0.70

Calls

no outgoing calls

Tested by 1

TestStddevFunction · 0.56

Used in the wild real call sites across dependent graphs

searching dependent graphs…