added documentation for CI
This commit is contained in:
parent
b673118473
commit
74b57a41fe
2
ostat.go
2
ostat.go
@ -95,6 +95,8 @@ func (os *OnlineStat) StdDev() float64 {
|
||||
return math.Sqrt(os.Variance())
|
||||
}
|
||||
|
||||
// CI returns a 95% confidence interval
|
||||
// https://en.wikipedia.org/wiki/Confidence_interval
|
||||
func (os *OnlineStat) CI() (float64, float64) {
|
||||
// 95% from http://mathworld.wolfram.com/ConfidenceInterval.html
|
||||
conf := 1.95996
|
||||
|
Loading…
Reference in New Issue
Block a user