public variance(axis as Long, ddof as Long = 0l, keepDims as Boolean = false, ignoreNaN as Boolean = false, where as Boolean[] = null, result as NDArray<Double> = null) as NDArray<Double>
Variance along the selected axes, without materializing slices.
| Parameter | Description |
|---|---|
axis | Axis to reduce; negative indices count from the end. |
ddof | Non-negative correction: divisor N-ddof; 0 population, 1 sample. |
keepDims | Keep reduced dimensions with length one. |
result | Optional non-aliased, shape-compatible destination reused without allocation. |
ignoreNaN | Skip NaNs; otherwise propagate them. |
where | Optional flat Boolean mask, one entry per source element. |
Reduced Double tensor.
values = data.variance(axis=0)