Vector Manipulation Layer (VectorLib)


getStd
to get standard deviation values from columns of array



FUNCTIONS

double - getStd(int[] data)
double - getStd(double[] data)
double[] - getStd(int[][] data, String mode)
double[] - getStd(double[][] data, String mode)




EXAMPLES

Example VectorLib vlib=new VectorLib();
int[] a={7, 4, 9};
double b=vlib.getStd(a);
vlib.view("Standar Deviation", b);
Output Standar Deviation = 2.0548046676563256


Example VectorLib vlib=new VectorLib();
double[] a={7.3, 4.8, 9.6};
double b=vlib.getStd(a);
vlib.view("Standar Deviation", b);
Output Standar Deviation = 1.9601587237318874


Example VectorLib vlib=new VectorLib();
int[][] a={{7, 4, 9}, {6, 3, 8}};
double[] b=vlib.getStd(a, "col");
vlib.view("Standar Deviation", b);
Output Standar Deviation =
0.5      0.5      0.5


Example VectorLib vlib=new VectorLib();
int[][] a={{7, 4, 9}, {6, 3, 8}};
double[] b=vlib.getStd(a, "row");
vlib.view("Standar Deviation", b);
Output Standar Deviation =
2.0548046676563256      2.0548046676563256


Example VectorLib vlib=new VectorLib();
double[][] a={{7.5, 4.2, 9.1}, {6.5, 3.3, 8.7}};
double[] b=vlib.getStd(a, "col");
vlib.view("Standar Deviation", b);
Output Standar Deviation =
0.5      0.4500000000000002      0.20000000000000018


Example VectorLib vlib=new VectorLib();
double[][] a={{7.5, 4.2, 9.1}, {6.5, 3.3, 8.7}};
double[] b=vlib.getStd(a, "row");
vlib.view("Standar Deviation", b);
Output Standar Deviation =
2.0401524997465805      2.2171052197754517