Start » Filter Reference » Basic » Statistics » Variance

Variance


Module: FoundationLite

Computes the variance of an array of real numbers. The array must be not empty.

Name Type Description
Input value
inValues RealArray
Input value
inUseSampleFormula Bool
Output value
outVariance Real

Hints

  • If the input array is not guaranteed to be non-empty, precede this filter with SkipEmptyArray.

Errors

This filter can throw an exception to report error. Read how to deal with errors in Error Handling.

List of possible exceptions:

Error type Description
DomainError Cannot calculate Variance of sample of size 1. Correct input data, or use Variance filter for population.

Complexity Level

This filter is available on Expert Complexity Level.