1 #ifndef _theplu_yat_statistics_tscore_ 2 #define _theplu_yat_statistics_tscore_ 31 #include <gsl/gsl_cdf.h> 38 namespace statistics {
113 double* dof=0)
const;
171 double* dof=0)
const;
180 template<
typename T1,
typename T2>
181 double score(
const T1& pos,
const T2& neg,
double* dof=0)
const;
187 template<
typename T1,
typename T2>
190 double diff = pos.mean() - neg.mean();
192 *dof=pos.n()+neg.n()-2;
193 double s2=( (pos.sum_xx_centered()+neg.sum_xx_centered())/
194 (pos.n()+neg.n()-2));
195 double t=diff/sqrt(s2/pos.n()+s2/neg.n());
tScore(bool absolute=true)
Default Constructor.
Class for containing sample labels.
Definition: Target.h:47
The Department of Theoretical Physics namespace as we define it.
bool absolute_
Definition: Score.h:131
double score(const classifier::Target &target, const utility::VectorBase &value) const
This is the yat interface to GSL vector.
Definition: VectorBase.h:55
Interface Class for score classes.
Definition: Score.h:43
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:47