Computes the sample variance of the values in an array.
The variance computed is the sample variance such that .
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| real(kind=real64), | intent(in) | :: | x(:) |
The array of values to analyze. |
Sample variance; fewer than two observations or nonfinite inputs give NaN. An unrepresentable variance gives positive infinity.
Computes sample variance using the array implementation on a copy.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(data_column), | intent(in) | :: | x |
The input column, unchanged; unallocated storage is treated as empty. |
Sample variance; fewer than two values or nonfinite data give NaN. Unrepresentable results give positive infinity.