public mean(axes as IList<Long>, keepDims as Boolean = false, ignoreNaN as Boolean = false, where as Boolean[] = null, result as NDArray<Double> = null) as NDArray<Double>
Arithmetic mean over several axes, with FP64 accumulation.
| Parameter | Description |
|---|---|
axes | Distinct axes; negative indices count from the end. |
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; a scalar tensor has shape [1].
means = data.mean(axes=[0l, 2l], keepDims=true)