np_var
Compute the variance of array elements along a specified axis, with optional control over degrees of freedom.
Instructions
Compute the variance along the specified axis.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| array | Yes | The input array. | |
| axis | No | Axis along which to compute variance (default: None, variance of all). | |
| ddof | No | Delta degrees of freedom for normalization (default: 0). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |