STIRA  0.1
Public Member Functions | Static Public Member Functions | List of all members
stira::common::QuantileNormalDistribution Class Reference

class to check if a histogram follows a normal distribution More...

#include <QuantileNormalDistribution.h>

Public Member Functions

 QuantileNormalDistribution ()
 constructor
 

Static Public Member Functions

static double Run (double p)
 returns for a probability p of a density function the corresponding quantile a histogram can when normalized be considered to be a probability density function
 
static std::vector< double > AnalyseNormalizedHistogram (std::vector< double > normalizedHistogram, double &rho, bool writeQuantiles=false)
 analyse a normalised histogram if its quantiles follow those of a normal distribution If the normalizedHistogram follows a normal distribution, the points in a Quantile-Quantile plot follow a straight line More...
 

Detailed Description

class to check if a histogram follows a normal distribution

Member Function Documentation

std::vector< double > stira::common::QuantileNormalDistribution::AnalyseNormalizedHistogram ( std::vector< double >  normalizedHistogram,
double &  rho,
bool  writeQuantiles = false 
)
static

analyse a normalised histogram if its quantiles follow those of a normal distribution If the normalizedHistogram follows a normal distribution, the points in a Quantile-Quantile plot follow a straight line

Parameters
normalizedHistogramthe histogram (expected to be normalized) as input
rhothe correlation coefficient of the quantiles of the input histogram and those of a standard normal dsitribution
writeQuantilesflag whether or not to write the quantiles
Returns
a vector (a, b) that describes the linear relationship y = ax+b between the normal quantiles and the histogram quantiles

References stira::common::FitCurve::FitLinear(), stira::common::Statistics< T >::GetCorrelation(), and Run().


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