Back to NDArray Operations
mean
Arithmetic mean of array elements. With dim, reduces along the given axis.
Syntax
mean(a: NDArray) → r
Backends
TypeScriptnumwa
Description
Arithmetic mean of array elements. With dim, reduces along the given axis.
Parameters
| Name | Description |
|---|---|
| a | Input array |
Returns
Scalar mean, or NDArray when reducing along an axis