npstat is hosted by Hepforge, IPPP Durham
NPStat  5.10.0
npstat::DensityScan1D Class Reference

#include <DensityScan1D.hh>

Public Member Functions

 DensityScan1D (const AbsDistribution1D &fcn, double normfactor, unsigned long nbins, double xmin, double xmax, unsigned nIntegrationPoints=1)
 
double operator() (const unsigned *index, unsigned len) const
 
double averageDensity (const unsigned binNumber) const
 

Detailed Description

A functor for filling one-dimensional ArrayND with density values

Constructor & Destructor Documentation

◆ DensityScan1D()

npstat::DensityScan1D::DensityScan1D ( const AbsDistribution1D fcn,
double  normfactor,
unsigned long  nbins,
double  xmin,
double  xmax,
unsigned  nIntegrationPoints = 1 
)

Parameter "nIntegrationPoints" determines how many points per bin will be used to calculate the bin average. This number must be either 0 (use cdf difference at the bin edges), 1 (use density value at the center of the bin), or one of the numbers of points supported by the "GaussLegendreQuadrature" class.


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