53 static double u_stat(
const std::vector<double> &sample1,
54 const std::vector<double> &sample2);
62 static double mean_arith(
const std::vector<double> &data);
70 double mean_geo(
const std::vector<double> &data);
80 double mean_cubic(
const std::vector<double> &data,
double p);
90 double mean_geo_pow(
const std::vector<double> &data,
double p);
114 double mean_heinz(
const std::vector<double> &data);
124 double mean_lehmer(
const std::vector<double> &data,
double p);
132 double Median(std::vector<double> data);
139 double avg_abs_dev(
const std::vector<double> &data);
147 double var_coeff(
const std::vector<double> &data);
155 double iq_range(
const std::vector<double> &data);
170 double range(
const std::vector<double> &data);
180 static double stdev(
const std::vector<double> &data,
double mean);
188 static double variance(
const std::vector<double> &data,
double mean);
201 double clt(
const std::vector<double> &data,
int numSamples);
212 double kurtosis(
const std::vector<double> &data,
double mean);
223 double lmoment1(
const std::vector<double> &data,
double mean);
235 double lmoment2(
const std::vector<double> &data,
double mean);
247 skewness(
const std::vector<double> &data,
double mean,
double stddev);
258 std::vector<size_t>
rank_data(
const std::vector<double> &data);
273 const std::vector<double> &y,
274 const std::vector<double> &z);
285 double ppmc(
const std::vector<double> &x,
const std::vector<double> &y);
298 const std::vector<double> &y);
310 const std::vector<double> &y);
A class providing methods for descriptive statistics.
static double u_stat(const std::vector< double > &sample1, const std::vector< double > &sample2)
Calculates U statistic given two samples.
double kurtosis(const std::vector< double > &data, double mean)
Calculates the kurtosis of a given dataset.
static double stdev(const std::vector< double > &data, double mean)
Calculates the standard deviation of a given dataset, given the mean.
double lmoment2(const std::vector< double > &data, double mean)
Calculates the second L-moment of a given dataset.
double kendalls_tau(const std::vector< double > &x, const std::vector< double > &y)
Calculates Kendall's Tau Rank Correlation between two variables.
double lmoment1(const std::vector< double > &data, double mean)
Calculates the first L-moment of a given dataset.
double clt(const std::vector< double > &data, int numSamples)
Calculates the standard error of the mean using the Central Limit Theorem.
double spearmans_rho(const std::vector< double > &x, const std::vector< double > &y)
Calculates Spearman's Rank Correlation between two variables.
static double variance(const std::vector< double > &data, double mean)
Calculates the variance of a given dataset, given the mean.
double mean_lehmer(const std::vector< double > &data, double p)
Calculates the Lehmer mean of a given dataset with a specified power.
double Median(std::vector< double > data)
Calculates the median of a given dataset.
double mean_heronian(const std::vector< double > &data)
Calculates the Heronian mean of a given dataset.
static double mean_arith(const std::vector< double > &data)
Calculates the arithmetic mean of a given dataset.
double mean_geo_pow(const std::vector< double > &data, double p)
Calculates the power geometric mean of a given dataset with a specified power.
double percentile(const std::vector< double > &data, double percentile)
Calculates the specified percentile of a given dataset.
double partial_corr(const std::vector< double > &x, const std::vector< double > &y, const std::vector< double > &z)
Calculates the partial correlation coefficient between two variables, controlling for a third variabl...
double skewness(const std::vector< double > &data, double mean, double stddev)
Calculates the skewness of a given dataset.
double iq_range(const std::vector< double > &data)
Calculates the interquartile range of a given dataset.
std::vector< size_t > rank_data(const std::vector< double > &data)
Ranks the data in ascending order.
double mean_heinz(const std::vector< double > &data)
Calculates the Heinz mean of a given dataset.
double mean_cubic(const std::vector< double > &data, double p)
Calculates the cubic generalized mean of a given dataset with a specified power.
double var_coeff(const std::vector< double > &data)
Calculates the coefficient of variation of a given dataset.
double mean_harmonic(const std::vector< double > &data)
Calculates the harmonic mean of a given dataset.
double avg_abs_dev(const std::vector< double > &data)
Calculates the average absolute deviation of a given dataset.
double ppmc(const std::vector< double > &x, const std::vector< double > &y)
Calculates the Pearson Product-Moment Correlation between two variables.
double range(const std::vector< double > &data)
Calculates the range of a given dataset.
double mean_geo(const std::vector< double > &data)
Calculates the geometric mean of a given dataset.
The source C++ openGPMP namespace.