1 #ifndef _theplu_yat_statistics_spearman_
2 #define _theplu_yat_statistics_spearman_
29 namespace statistics {
55 void add(
double x,
double y);
73 double p_left(
bool exact=
false)
const;
92 double p_right(
bool exact=
false)
const;
103 double p_value(
bool exact=
false)
const;
119 double score(
void)
const;
void reset(void)
reset to empty
double score(void) const
spearman rank correlation coefficient
double p_left(bool exact=false) const
Lower one-sided p-value.
double p_right(bool exact=false) const
Upper one-sided p-value.
double p_value(bool exact=false) const
Two-sided p-value.
Spearman(void)
Constructor.
void add(double x, double y)
add pair of data
size_t n(void) const
Number of data points.
virtual ~Spearman(void)
Destructor.
Spearman rank correlation coefficient.
Definition: Spearman.h:39