Back to Aurora Vision Library Lite website
You are here: Start » Basic » Statistics » Variance
Variance
Header: | STD.h |
---|---|
Namespace: | avl |
Computes the variance of an array of real numbers. The array must be not empty.
Syntax
void avl::Variance ( const atl::Array<float>& inValues, const bool inUseSampleFormula, float& outVariance )
Parameters
Name | Type | Default | Description | |
---|---|---|---|---|
inValues | const Array<float>& | |||
inUseSampleFormula | const bool | |||
outVariance | float& |
Hints
- If the input array is not guaranteed to be non-empty, precede this filter with SkipEmptyArray.
Errors
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. |