|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.ObjectSciLib.Math.ST.Stat
public final class Stat
This class defines some useful statistical computation.
| Constructor Summary | |
|---|---|
Stat()
|
|
| Method Summary | |
|---|---|
static vector |
autoCorrelation(vector x)
Compute the autoCorrelation of the vector x |
static vector |
autoCovariance(vector x)
Compute the autoCovariance of the vector x |
static double |
correlation(vector x,
vector y)
Compute the correlation of two vectors x, y |
static double |
covariance(vector x,
vector y)
Compute the covariance of two vectors x, y |
static double |
deviation(vector x)
Compute the standard deviation of vector x |
static double |
GaussDist(double mean,
double var)
Compute the one-dimensional Gaussian distribution with mean mu and standard deviation sigma |
static double |
gausspdf(vector x,
vector mu,
double sigma2)
Compute the Gaussian distribution of vector x with mean mu and standard deviation sigma |
static double |
mean(vector x)
Compute the mean of vector x |
static void |
meanCorrected(vector x)
Transform the vector x so that it has zero mean |
static vector |
normpdf(vector x,
double mu,
double sigma)
Compute the normal probability function of vector x with mean mu and standard deviation sigma |
static vector |
randomVector(int size,
double a,
double b)
Compute a vector of random numbers between a and b |
static double |
variance(vector x)
Compute the variance of vector x |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Stat()
| Method Detail |
|---|
public static vector autoCorrelation(vector x)
x - A vector
public static vector autoCovariance(vector x)
x - A vector
public static double correlation(vector x,
vector y)
x - A vectory - A vector
public static double covariance(vector x,
vector y)
x - A vectory - A vector
public static double deviation(vector x)
x - A vector
public static double mean(vector x)
x - A vector
public static void meanCorrected(vector x)
x - A vector
public static vector randomVector(int size,
double a,
double b)
size - An integer value, the size of the vectora - A double valueb - A double value
public static double variance(vector x)
x - A vector
public static vector normpdf(vector x,
double mu,
double sigma)
x - A vectormu - A double value, the meansigma - A double value, the variance
public static double GaussDist(double mean,
double var)
mean - the mean, a doublevar - the variance, a double
public static double gausspdf(vector x,
vector mu,
double sigma2)
x - A vectormu - A vector, the meansigma2 - A double value, the variance
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||