npstat is hosted by Hepforge, IPPP Durham
NPStat  5.10.0
arrayStats.hh File Reference

Various descriptive statistics for 1-d and multidimensional arrays. More...

#include <vector>
#include <utility>
#include <stdexcept>
#include "npstat/nm/BoxND.hh"
#include "npstat/nm/Matrix.hh"
#include "npstat/stat/arrayStats.icc"

Go to the source code of this file.

Namespaces

 npstat
 

Functions

template<typename Numeric >
void npstat::arrayStats (const Numeric *arr, unsigned long arrLen, double *mean, double *stdev, double *skewness=0, double *kurtosis=0)
 
template<typename Numeric >
long double npstat::arrayMoment (const Numeric *arr, unsigned long arrLen, long double center, unsigned order)
 
template<typename Numeric >
void npstat::arrayMoments (const Numeric *arr, unsigned long arrLen, long double center, unsigned maxOrder, long double *moments)
 
template<typename Numeric >
void npstat::arrayCumulants (const Numeric *arr, unsigned long arrLen, unsigned maxOrder, long double *cumulants)
 
template<typename Numeric >
void npstat::arrayCentralMoments (const Numeric *arr, unsigned long arrLen, unsigned maxOrder, long double *moments, long double *momentUncertainties=0)
 
template<class Array >
void npstat::arrayCoordMean (const Array &a, const BoxND< double > &limits, double *mean, unsigned lengthMean)
 
template<class Array , unsigned Len>
void npstat::arrayCoordCovariance (const Array &a, const BoxND< double > &limits, Matrix< double, Len > *covarianceMatrix)
 
template<class Array >
void npstat::arrayShape1D (const Array &a, double xmin, double xmax, double *mean, double *stdev, double *skewness, double *kurtosis)
 
template<class Numeric >
void npstat::arrayQuantiles1D (const Numeric *data, unsigned long len, double xmin, double xmax, const double *qvalues, double *quantiles, unsigned nqvalues)
 
template<class Numeric >
double npstat::arrayEntropy (const Numeric *p, unsigned long len, bool normalize=false)
 
template<typename Real , typename Numeric >
double npstat::poissonLogLikelihood (const Real *means, const Numeric *counts, unsigned long len)
 

Detailed Description

Various descriptive statistics for 1-d and multidimensional arrays.

Author: I. Volobouev

July 2010