public class Stats
extends java.lang.Object
Constructor and Description |
---|
Stats() |
Modifier and Type | Method and Description |
---|---|
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 . |
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
.