npstat is hosted by Hepforge, IPPP Durham
NPStat  5.10.0
multinomialCovariance1D.hh
Go to the documentation of this file.
1 #ifndef NPSTAT_MULTINOMIALCOVARIANCE1D_HH_
2 #define NPSTAT_MULTINOMIALCOVARIANCE1D_HH_
3 
4 /*!
5 // \file multinomialCovariance1D.hh
6 //
7 // \brief Multinomial covariance matrix for a discretized 1-d density
8 //
9 // Author: I. Volobouev
10 //
11 // March 2014
12 */
13 
14 #include "npstat/nm/Matrix.hh"
16 
17 namespace npstat {
18  /**
19  // Input arguments are:
20  //
21  // fcn -- the distribution to discretize
22  //
23  // sampleSize -- the number of points in the sample
24  //
25  // nbins -- number of discretization intervals
26  //
27  // xmin, xmax -- discretization region. The input density
28  // will be normalized on this region.
29  //
30  // nIntegrationPoints -- determines how many points per bin
31  // will be used to calculate the bin average.
32  // Can be 0 (use cdf difference at the bin edges),
33  // 1 (use density value at the center of the bin),
34  // or one of the numbers of points supported by
35  // the "GaussLegendreQuadrature" class.
36  //
37  // The returned matrix will have dimensions nbins x nbins.
38  */
40  const AbsDistribution1D& fcn, double sampleSize,
41  unsigned nbins, double xmin, double xmax,
42  unsigned nIntegrationPoints = 0);
43 }
44 
45 #endif // NPSTAT_MULTINOMIALCOVARIANCE1D_HH_
Interface definition for 1-d continuous statistical distributions.
Template matrix class.
Definition: AbsArrayProjector.hh:14
Matrix< double > multinomialCovariance1D(const AbsDistribution1D &fcn, double sampleSize, unsigned nbins, double xmin, double xmax, unsigned nIntegrationPoints=0)
Definition: AbsDistribution1D.hh:31