npstat is hosted by Hepforge, IPPP Durham
NPStat  5.10.0
npstat::DensityScanND< IndexMapper > Class Template Reference

#include <DensityScanND.hh>

Public Member Functions

 DensityScanND (const AbsDistributionND &fcn, const std::vector< IndexMapper > &maps, double normfactor=1.0)
 
void getCoords (const unsigned *index, const unsigned indexLen, double *coords) const
 
double operator() (const unsigned *index, unsigned indexLen) const
 

Detailed Description

template<class IndexMapper>
class npstat::DensityScanND< IndexMapper >

The IndexMapper template parameter is a functor which takes a double argument (representing unsigned int) and returns a double (or something which can be automatically converted to double). IndexMapper can, for example, be set to LinearMapper1d or CircularMapper1d.

Constructor & Destructor Documentation

◆ DensityScanND()

template<class IndexMapper >
npstat::DensityScanND< IndexMapper >::DensityScanND ( const AbsDistributionND fcn,
const std::vector< IndexMapper > &  maps,
double  normfactor = 1.0 
)
inline

A mapper for each coordinate in the "maps" constructor argument will convert the array index into a proper argument for the scanned density.

This functor will NOT make a copy of the "fcn" parameter. This parameter will be used by reference only (aliased). It is up to the user of this class to ensure proper lifetime of this object.


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