public static double Variance( this IReadOnlyCollection<double> sample )
<ExtensionAttribute> Public Shared Function Variance ( sample As IReadOnlyCollection(Of Double) ) As Double
public: [ExtensionAttribute] static double Variance( IReadOnlyCollection<double>^ sample )
[<ExtensionAttribute>] static member Variance : sample : IReadOnlyCollection<float> -> float
|ArgumentNullException||sample is .|
Note that some authors use the term "sample variance" to mean "the population variance as estimated by the sample". We do not adopt this aberrant convention, which is contrary to the conventional meanings of all other sample moments. This means that what is returned by this method is the sum of squared deviations divided by n, not divided by (n-1). If you want an estimate of the population variance, use the PopulationVariance(IReadOnlyCollectionDouble) method.