mean(x: number): number
Average value of array or matrix.
Computes the average (arithmetic mean) of values in an array or matrix. For arrays, returns a single mean value. For matrices, computes mean along specified dimension.
mean(x: array,dim?: 0 | 1,): number
Average value of array or matrix.
Computes the average (arithmetic mean) of values in an array or matrix. For arrays, returns a single mean value. For matrices, computes mean along specified dimension.
x: array
Input array, matrix, or number
mean(x: matrix,dim?: 0 | 1,): array
Average value of array or matrix.
Computes the average (arithmetic mean) of values in an array or matrix. For arrays, returns a single mean value. For matrices, computes mean along specified dimension.
x: matrix
Input array, matrix, or number
Mean values
mean(): number | array
Average value of array or matrix.
Computes the average (arithmetic mean) of values in an array or matrix. For arrays, returns a single mean value. For matrices, computes mean along specified dimension.
number | array
Mean values