|
Median
Compute the median of the matrix/vector elements.
double vector::Median();
|
Parameters
axis
[in] Axis. 0 — horizontal axis, 1 — vertical axis.
Return Value
Median: scalar or vector.
Note
The median is the middle value that separates the highest half of the array/vector elements from the lowest half of elements. Same as Quantile(0.5) and Percentile(50). The correct calculation of median requires the sequence to be sorted.
Example
matrixf matrix_a={{1,2,3},{4,5,6},{7,8,9},{10,11,12}};
|