A statical two sample test. Sample. More...
#include <SampleTest.h>
Public Member Functions | |
SampleTest (const Sample &s1, const Sample &s2) | |
SampleTest (List< double > *s1, List< double > *s2) | |
SampleTest (Vector< double > *s1, Vector< double > *s2) | |
SampleTest (const double *s1, const int s1count, const double *s2, const int s2count) | |
SampleTest (const SampleTest &t) | |
SampleTest & | operator= (const SampleTest &t) |
Sample & | DataSet1 () |
Sample & | DataSet2 () |
double | StudentsT (double *prob) |
Student's t-test fo signifcantly different means. | |
double | FTest (double *fstat) |
Small values of prob indicate that the two sets have significantly different variances. | |
double | ApproximateTTest (double *prob, double *df) |
double | OneSampleTTest () |
double | UStat () |
mann-whitney | |
double | UStatAlternate () |
mann-whitney | |
double | WTestSmall () |
Shapiro-Wilk W Test of Normality for Small Samples THIS IS THE SHAPIRO-WILK TEST FOR SMALL SAMPLES THE SAMPLE SIZE MUST BE LESS THAN OR EQUAL TO 50 TEST13 SW(N) =,f10.4. | |
double | Levene (double *prob) |
large values of prob indiccate that the two sets have significantly different variances | |
double | LeveneAlternate (double *prob) |
void | Rankit (Sample **x1, Sample **x2) |
double | StandardError () const |
virtual void | ValidateMem () const |
virtual void | CheckMem () const |
Static Public Member Functions | |
static double | Betai (double a, double b, double x) |
returns the incomplete beta funciton Ix(a, b) | |
static double | Gammaln (double xx) |
returns the value ln(tao(?)(xx)) for xx > 0 | |
static double | Gamma (double d) |
static double | FDistr (double x, double v, double w) |
static double | TCriticalValue (int N, double alpha) |
Do a table lookup of t critical values. | |
static double | TCriticalValueAlternate (int N, double alpha) |
static double | WTestCriticalValue (int N, double alpha) |
static double | UCriticalPoint (int N1, int N2, double alpha) |
Static Protected Member Functions | |
static double | Betacf (double a, double b, double x) |
evaluate continued fration for incomplete beta funciton by modified lentz's method (5.2) | |
Protected Attributes | |
Sample | m_s1 |
Sample | m_s2 |
A statical two sample test. Sample.
Definition at line 31 of file SampleTest.h.
double SampleTest::Betacf | ( | double | a, | |
double | b, | |||
double | x | |||
) | [static, protected] |
evaluate continued fration for incomplete beta funciton by modified lentz's method (5.2)
Definition at line 353 of file SampleTest.cpp.
Referenced by Betai().
double SampleTest::Betai | ( | double | a, | |
double | b, | |||
double | x | |||
) | [static] |
returns the incomplete beta funciton Ix(a, b)
Definition at line 288 of file SampleTest.cpp.
References Betacf(), and Gammaln().
Referenced by FTest(), and StudentsT().
double SampleTest::FTest | ( | double * | fstat | ) |
Small values of prob indicate that the two sets have significantly different variances.
Returns the probability
Definition at line 421 of file SampleTest.cpp.
References Betai().
double SampleTest::Gammaln | ( | double | xx | ) | [static] |
returns the value ln(tao(?)(xx)) for xx > 0
Definition at line 319 of file SampleTest.cpp.
Referenced by Betai().
double SampleTest::OneSampleTTest | ( | ) |
I think this is wrong
Definition at line 502 of file SampleTest.cpp.
double SampleTest::StudentsT | ( | double * | prob | ) |
Student's t-test fo signifcantly different means.
Definition at line 267 of file SampleTest.cpp.
References Betai().