Back to Core Functions
var
Variance
Syntax
V = var(A) V = var(A, dim)
Description
Returns the variance of the elements. With a dimension argument, computes along that dimension.
Parameters
| Name | Description |
|---|---|
| A | Input array (scalar or NDArray) |
| dim(optional) | Dimension (1-indexed) |
Returns
Variance (scalar or NDArray)