|
Std
Return the standard deviation of values of matrix/vector elements or of elements along the given axis.
double vector::Std();
|
Parameters
axis
[in] Axis. 0 — horizontal axis, 1 — vertical axis.
Return Value
Standard_deviation: scalar or vector.
Note
The standard deviation is the square root of the average of the squared deviations from the mean, i. e., std = sqrt(mean(x)), where x = abs(a - a.mean())**2.
The average squared deviation is typically calculated as x.sum() / N, where N = len(x).
Example
matrixf matrix_a={{10,3,2},{1,8,12},{6,5,4},{7,11,9}};
|