Calculate mean and standard deviation of a vector
1. vinc 1 2. vinc Col(A) 3. vinc ix:=col(a) mean:=mymean sd:=mysd
Please refer to the page for additional option switches when accessing the x-function from script
Input
vector
The input vector to be calculated average increment.
Output
double
Mean value of the vector.
Standard deviation of the vector.
This function is used to describe the basic characteristics of the vector. It summarizes aspects, such as mean and standard deviation.
// vinc function can be used to determine a mean // step size between values in a column newbook; // Create some unsorted random data int N = 1000; col(1) = normal(N); vinc ix:=col(1) mean:=step sd:=sd; type Mean step size of $(step), sd of $(sd); // Now let's sort the column and try again col(1) = sort(col(1)); vinc ix:=col(1) mean:=step sd:=sd; type After sorting, mean step size of $(step), sd of $(sd); // So col(1)[1]+(N-1)*step == col(1)[N]
For the detail of this function, please see the help of Statistics on columns.
vinc_check
Keywords:stats, statistics