this can probably be implemented directly in terms of a meanAndVariance.Impl[T, Double], but this is good for now.