|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.android.activityminer.logic.statistics.StudentTTest
public class StudentTTest
Am simple Student t test implementation to generate a X%, two-sided mean confidence interval for one sample.
Nested Class Summary | |
---|---|
static class |
StudentTTest.ConfidenceCoefficent
Known confidence coefficients (for confidence interval calculation) |
Field Summary | |
---|---|
private static double[][] |
table
Critical values of Student's t distribution with ν (v<10) degrees of freedom. |
Constructor Summary | |
---|---|
StudentTTest()
|
Method Summary | |
---|---|
static double |
meanConfidenceDelta(double[] sample,
StudentTTest.ConfidenceCoefficent cc)
Mean confidence delta computation for a single sample. |
private static double |
meanConfidenceDelta(double mean,
double var,
int n,
StudentTTest.ConfidenceCoefficent cc)
Mean confidence delta computation. |
static double[] |
meanConfidenceInterval(double[] sample,
StudentTTest.ConfidenceCoefficent cc)
Mean confidence interval computation for a single sample. |
private static double[] |
meanConfidenceInterval(double mean,
double var,
int n,
StudentTTest.ConfidenceCoefficent cc)
Mean confidence interval computation. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private static final double[][] table
Constructor Detail |
---|
public StudentTTest()
Method Detail |
---|
private static final double meanConfidenceDelta(double mean, double var, int n, StudentTTest.ConfidenceCoefficent cc) throws IllegalArgumentException
mean
- the sample meanvar
- the sample variancen
- the sample countcc
- the confidence coefficient (1-significance)
IllegalArgumentException
- if n is not more than 1public static final double meanConfidenceDelta(double[] sample, StudentTTest.ConfidenceCoefficent cc) throws IllegalArgumentException
sample
- the samplecc
- the confidence coefficient (1-significance)
IllegalArgumentException
- if n is not more than 1private static final double[] meanConfidenceInterval(double mean, double var, int n, StudentTTest.ConfidenceCoefficent cc) throws IllegalArgumentException
mean
- the sample meanvar
- the sample variancen
- the sample countcc
- the confidence coefficient (1-significance)
IllegalArgumentException
- if n is not more than 1public static final double[] meanConfidenceInterval(double[] sample, StudentTTest.ConfidenceCoefficent cc) throws IllegalArgumentException
sample
- the samplecc
- the confidence coefficient (1-significance)
IllegalArgumentException
- if n is not more than 1
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |