|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--weka.core.Statistics
Class implementing some distributions, tests, etc. Most of the code is adapted from Gary Perlman's unixstat.
| Constructor Summary | |
Statistics()
|
|
| Method Summary | |
static double |
binomialStandardError(double p,
int n)
Computes standard error for observed values of a binomial random variable. |
static double |
chiSquaredProbability(double x,
int df)
Returns chi-squared probability for given value and degrees of freedom. |
static double |
FCriticalValue(double p,
int df1,
int df2)
Critical value for given probability of F-distribution. |
static double |
FProbability(double F,
int df1,
int df2)
Computes probability of F-ratio. |
static void |
main(java.lang.String[] ops)
Main method for testing this class. |
static double |
normalProbability(double z)
Returns probability that the standardized normal variate Z (mean = 0, standard deviation = 1) is less than z. |
static double |
studentTConfidenceInterval(int df,
double p,
double se)
Computes absolute size of half of a student-t confidence interval for given degrees of freedom, probability, and observed value. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public Statistics()
| Method Detail |
public static double binomialStandardError(double p,
int n)
p - the probability of successn - the size of the sample
public static double chiSquaredProbability(double x,
int df)
x - the valuedf - the number of degrees of freedom
public static double FCriticalValue(double p,
int df1,
int df2)
p - the probabilitydf1 - the first number of degrees of freedomdf2 - the second number of degrees of freedom
public static double FProbability(double F,
int df1,
int df2)
F - the F-ratiodf1 - the first number of degrees of freedomdf2 - the second number of degrees of freedompublic static double normalProbability(double z)
the - z-value
public static double studentTConfidenceInterval(int df,
double p,
double se)
df - the number of degrees of freedomp - the probabilityse - the observed valuepublic static void main(java.lang.String[] ops)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||