by anonfunction · 11y ago · 0 comments
I started with only []float64 but wanted to allow stuff like this:
func getData() []float64 {
// Do stuff to get the data and
// store it in var data []float64
return data
}
var d Float64Data = getData()
fmt.Println(d.Max())
1. https://github.com/montanaflynn/stats/blob/master/examples/m...2. https://github.com/montanaflynn/stats/blob/master/examples/m...
No comments yet.