openGPMP
Open Source Mathematics Package
Public Member Functions | List of all members
gpmp::ml::Stats Class Reference

#include <statistics.hpp>

Public Member Functions

double b0Estimation (const std::vector< double > &x, const std::vector< double > &y)
 
double b1Estimation (const std::vector< double > &x, const std::vector< double > &y)
 
double mean (const std::vector< double > &x)
 
double median (std::vector< double > x)
 
std::vector< double > mode (const std::vector< double > &x)
 
double range (const std::vector< double > &x)
 
double midrange (const std::vector< double > &x)
 
double absAvgDeviation (const std::vector< double > &x)
 
double standardDeviation (const std::vector< double > &x)
 
double variance (const std::vector< double > &x)
 
double covariance (const std::vector< double > &x, const std::vector< double > &y)
 
double correlation (const std::vector< double > &x, const std::vector< double > &y)
 
double R2 (const std::vector< double > &x, const std::vector< double > &y)
 
double chebyshevIneq (const double k)
 
double weightedMean (const std::vector< double > &x, const std::vector< double > &weights)
 
double geometricMean (const std::vector< double > &x)
 
double harmonicMean (const std::vector< double > &x)
 
double RMS (const std::vector< double > &x)
 
double powerMean (const std::vector< double > &x, const double p)
 
double lehmerMean (const std::vector< double > &x, const double p)
 
double weightedmean_lehmer (const std::vector< double > &x, const std::vector< double > &weights, const double p)
 
double contramean_harmonic (const std::vector< double > &x)
 
double heronianMean (const double A, const double B)
 
double heinzMean (const double A, const double B, const double x)
 
double neumanSandorMean (const double a, const double b)
 
double stolarskyMean (const double x, const double y, const double p)
 
double identricMean (const double x, const double y)
 
double logMean (const double x, const double y)
 
std::tuple< bool, double > chiSquareTest (std::vector< double > observed, std::vector< double > expected)
 

Detailed Description

Definition at line 43 of file statistics.hpp.

Member Function Documentation

◆ absAvgDeviation()

double gpmp::ml::Stats::absAvgDeviation ( const std::vector< double > &  x)

◆ b0Estimation()

double gpmp::ml::Stats::b0Estimation ( const std::vector< double > &  x,
const std::vector< double > &  y 
)

◆ b1Estimation()

double gpmp::ml::Stats::b1Estimation ( const std::vector< double > &  x,
const std::vector< double > &  y 
)

◆ chebyshevIneq()

double gpmp::ml::Stats::chebyshevIneq ( const double  k)

◆ chiSquareTest()

std::tuple<bool, double> gpmp::ml::Stats::chiSquareTest ( std::vector< double >  observed,
std::vector< double >  expected 
)

◆ contramean_harmonic()

double gpmp::ml::Stats::contramean_harmonic ( const std::vector< double > &  x)

◆ correlation()

double gpmp::ml::Stats::correlation ( const std::vector< double > &  x,
const std::vector< double > &  y 
)

◆ covariance()

double gpmp::ml::Stats::covariance ( const std::vector< double > &  x,
const std::vector< double > &  y 
)

◆ geometricMean()

double gpmp::ml::Stats::geometricMean ( const std::vector< double > &  x)

◆ harmonicMean()

double gpmp::ml::Stats::harmonicMean ( const std::vector< double > &  x)

◆ heinzMean()

double gpmp::ml::Stats::heinzMean ( const double  A,
const double  B,
const double  x 
)

◆ heronianMean()

double gpmp::ml::Stats::heronianMean ( const double  A,
const double  B 
)

◆ identricMean()

double gpmp::ml::Stats::identricMean ( const double  x,
const double  y 
)

◆ lehmerMean()

double gpmp::ml::Stats::lehmerMean ( const std::vector< double > &  x,
const double  p 
)

◆ logMean()

double gpmp::ml::Stats::logMean ( const double  x,
const double  y 
)

◆ mean()

double gpmp::ml::Stats::mean ( const std::vector< double > &  x)

◆ median()

double gpmp::ml::Stats::median ( std::vector< double >  x)

◆ midrange()

double gpmp::ml::Stats::midrange ( const std::vector< double > &  x)

◆ mode()

std::vector<double> gpmp::ml::Stats::mode ( const std::vector< double > &  x)

◆ neumanSandorMean()

double gpmp::ml::Stats::neumanSandorMean ( const double  a,
const double  b 
)

◆ powerMean()

double gpmp::ml::Stats::powerMean ( const std::vector< double > &  x,
const double  p 
)

◆ R2()

double gpmp::ml::Stats::R2 ( const std::vector< double > &  x,
const std::vector< double > &  y 
)

◆ range()

double gpmp::ml::Stats::range ( const std::vector< double > &  x)

◆ RMS()

double gpmp::ml::Stats::RMS ( const std::vector< double > &  x)

◆ standardDeviation()

double gpmp::ml::Stats::standardDeviation ( const std::vector< double > &  x)

◆ stolarskyMean()

double gpmp::ml::Stats::stolarskyMean ( const double  x,
const double  y,
const double  p 
)

◆ variance()

double gpmp::ml::Stats::variance ( const std::vector< double > &  x)

◆ weightedMean()

double gpmp::ml::Stats::weightedMean ( const std::vector< double > &  x,
const std::vector< double > &  weights 
)

◆ weightedmean_lehmer()

double gpmp::ml::Stats::weightedmean_lehmer ( const std::vector< double > &  x,
const std::vector< double > &  weights,
const double  p 
)

The documentation for this class was generated from the following file: