variance.variance

Computes variance of a range or array with population/sample selection and customizable algorithm via overloaded templates. (community summary)

  1. meanType!Range variance(Range r, bool isPopulation)
  2. meanType!T variance(T[] ar)
    template variance(VarianceAlgo varianceAlgo = VarianceAlgo.online, Summation summation = Summation.appropriate)
    @fmamath
    variance
    (
    T
    )
    (
    scope const T[] ar...
    )

Parameters

ar T[]

values