stdp
Syntax
stdp(X)
Arguments
X is a vector/matrix.
Details
If X is a vector, return the population standard deviation of X.
If X is a matrix, calculate the population standard deviation of each column and return a vector.
As with all other aggregate functions, NULL values are not included in the calculation.
Examples
$ stdp(1 2 3);
0.816497
$ m=matrix(1 3 5 7 9, 1 4 7 10 13);
$ m;
#0 |
#1 |
---|---|
1 |
1 |
3 |
4 |
5 |
7 |
7 |
10 |
9 |
13 |
$ stdp(m);
[2.8284,4.2426]