• Variance of a full period ending at the current bar. Population is the default; sample divides by period-1 and gives NaN for period one. Ties are repeated observations. Warmup is NaN. Missing values propagate by default; skip collects period finite observations and holds across gaps. Invalid periods throw RangeError; invalid policy or sample options throw TypeError. A variance beyond the finite number range is Infinity.

    Parameters

    Returns number[]