Ptp
Return the range of values of a matrix/vector or of the given matrix axis, equivalent to Max() - Min(). Ptp - Peak to peak.
double vector::Ptp();
|
Parameters
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
Vector with ranges of values (maximum - minimum) .
Example
matrix matrix_a={{10,3,2},{1,8,12},{6,5,4},{7,11,9}};
|