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

#include <DensityScan1D.hh>

Inheritance diagram for npstat::DensityDiscretizationError1D:
npstat::Functor1< double, double >

Public Member Functions

 DensityDiscretizationError1D (const AbsDistribution1D &fcn, const double normfactor, const double discreteValue)
 
virtual double operator() (const double &a) const
 

Additional Inherited Members

- Public Types inherited from npstat::Functor1< double, double >
typedef double result_type
 
typedef double first_argument_type
 

Detailed Description

A helper functor to be used for the determination of density discretization errors (when the density is represented by a collection of values on a grid)

Constructor & Destructor Documentation

◆ DensityDiscretizationError1D()

npstat::DensityDiscretizationError1D::DensityDiscretizationError1D ( const AbsDistribution1D fcn,
const double  normfactor,
const double  discreteValue 
)
inline

"discreteValue" is the density value on a particular discretization interval. It is expected that the driver code will integrate the L2 error returned by this functor over all such intervals.


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