Stats also works fine with pure []float64 data. The types allow for a very clean API for working with data and statistics. You can compare using functions[1] or methods[2] in &#x2F;examples.<p>I started with only []float64 but wanted to allow stuff like this:<p><pre><code>    func getData() []float64 {
    	&#x2F;&#x2F; Do stuff to get the data and 
    	&#x2F;&#x2F; store it in var data []float64
    	return data
    }

    var d Float64Data = getData()
    fmt.Println(d.Max())
</code></pre>
1. <a href="https:&#x2F;&#x2F;github.com&#x2F;montanaflynn&#x2F;stats&#x2F;blob&#x2F;master&#x2F;examples&#x2F;main.go" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;montanaflynn&#x2F;stats&#x2F;blob&#x2F;master&#x2F;examples&#x2F;m...</a><p>2. <a href="https:&#x2F;&#x2F;github.com&#x2F;montanaflynn&#x2F;stats&#x2F;blob&#x2F;master&#x2F;examples&#x2F;methods.go" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;montanaflynn&#x2F;stats&#x2F;blob&#x2F;master&#x2F;examples&#x2F;m...</a>