1 #ifndef _theplu_yat_statistics_tscore_
2 #define _theplu_yat_statistics_tscore_
30 #include <gsl/gsl_cdf.h>
37 namespace statistics {
112 double* dof=0)
const;
170 double* dof=0)
const;
179 template<
typename T1,
typename T2>
180 double score(
const T1& pos,
const T2& neg,
double* dof=0)
const;
186 template<
typename T1,
typename T2>
189 double diff = pos.mean() - neg.mean();
191 *dof=pos.n()+neg.n()-2;
192 double s2=( (pos.sum_xx_centered()+neg.sum_xx_centered())/
193 (pos.n()+neg.n()-2));
194 double t=diff/sqrt(s2/pos.n()+s2/neg.n());
double score(const classifier::Target &target, const utility::VectorBase &value) const
tScore(bool absolute=true)
Default Constructor.
Class for containing sample labels.
Definition: Target.h:47
bool absolute_
Definition: Score.h:130
This is the yat interface to GSL vector.
Definition: VectorBase.h:52
Interface Class for score classes.
Definition: Score.h:42
void absolute(bool absolute)
Function changing mode of Score.
Class for general weighted vector view.
Definition: DataLookupWeighted1D.h:43
Class for Fisher's t-test.
Definition: tScore.h:46