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

#include <AbsDistribution1D.hh>

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

Public Member Functions

 AcceptanceFunctor1D (const AbsDistribution1D &fcn, const double maxDensityValue)
 
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 functor that gives the ratio between the density and its maximum value. Can be used to sample the distributions by acceptance-rejection. Does not copy the distribution, so the functor lifetime should not exceed the lifetime of the distribution.


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