Skip to content

itsubaki/welford

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

welford

  • Welford algorithm for Go
w := welford.New()
w.Add(1)
w.Add(2, 3, 4, 5)
w.Add([]float64{6, 7, 8, 9, 10}...)

fmt.Println(w.N())
fmt.Println(w.Mean())
fmt.Println(w.Var())
fmt.Println(w.Stddev())

// Output:
// 10
// 5.5
// 9.166666666666666
// 3.0276503540974917

About

Welford algorithm for Go

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages