Percentile
Return the specified percentile of values of matrix/vector elements or elements along the specified axis.
double vector::Percentile(
|
Parameters
percent
[in] Axis. ENUM_MATRIX_AXIS enumeration value (AXIS_HORZ — horizontal axis, AXIS_VERT — vertical axis, AXIS_NONE — no axis, calculation along whole matrix).
axis
[in] Axis. ENUM_MATRIX_AXIS enumeration value (AXIS_HORZ — horizontal axis, AXIS_VERT — vertical axis, AXIS_NONE — no axis, calculation along whole matrix).
Return Value
Percentile: scalar or vector.
Note
Valid values of the 'percent' parameter are in the range [0, 100]. A linear algorithm is used to calculate percentiles. The correct calculation of percentiles requires the sequence to be sorted.
Example
matrixf matrix_a={{1,2,3},{4,5,6},{7,8,9},{10,11,12}};
|