From f3c5d5f73ac45eaf3e84d0ebfa39fb74b53e2875 Mon Sep 17 00:00:00 2001 From: Jonathan J Lawlor Date: Fri, 14 Nov 2014 15:17:40 -0500 Subject: [PATCH] split out mean formula into its own line --- stat.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/stat.go b/stat.go index 0eaca54..5ff4e7f 100644 --- a/stat.go +++ b/stat.go @@ -727,7 +727,8 @@ func Moment(moment float64, x, weights []float64) float64 { } // MomentAbout computes the weighted n^th weighted moment of the samples about -// the given mean \mu, E[(x - μ)^N]. +// the given mean \mu, +// E[(x - μ)^N] // No degrees of freedom correction is done. // If weights is nil then all of the weights are 1. If weights is not nil, then // len(x) must equal len(weights).