|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectir.utilities.Stats
public class Stats
A place to put statistical routines
| Constructor Summary | |
|---|---|
Stats()
|
|
| Method Summary | |
|---|---|
static double |
covariance(double[] x,
double[] y)
Return the covariance between the vectors x and y. |
static double |
mean(double[] values)
Return the arithmetic mean of the argument values. |
static double |
pearsonCorrelation(double[] x,
double[] y)
Return the Pearson Correlation between the vectors x and y. |
static double |
standardDeviation(double[] values)
Return the standard deviation of the argument values. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Stats()
| Method Detail |
|---|
public static double mean(double[] values)
values.
public static double standardDeviation(double[] values)
values.
Standard deviation is the square root of the variance.
public static double covariance(double[] x,
double[] y)
x and y.
public static double pearsonCorrelation(double[] x,
double[] y)
x and y.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||