Skip to content
This repository has been archived by the owner on Dec 22, 2018. It is now read-only.

Commit

Permalink
split out mean formula into its own line
Browse files Browse the repository at this point in the history
  • Loading branch information
jonlawlor committed Nov 14, 2014
1 parent 9bbef05 commit f3c5d5f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion stat.go
Expand Up @@ -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).
Expand Down

0 comments on commit f3c5d5f

Please sign in to comment.