npstat is hosted by Hepforge, IPPP Durham
NPStat  5.10.0
Inheritance diagram for npstat::DeltaMixture1D:
npstat::AbsScalableDistribution1D npstat::AbsDistribution1D

Public Member Functions

template<typename Real1 , typename Real2 >
 DeltaMixture1D (const double location, const double scale, const Real1 *unscaledCoords, const Real2 *unscaledWeights, const unsigned arrayLength)
 
virtual DeltaMixture1Dclone () const
 
unsigned nComponents () const
 
double getLocation (const unsigned i) const
 
double getWeight (const unsigned i) const
 
double integral (double a, bool includePointAtA, double b, bool includePointAtB) const
 
long double moment (long double center, unsigned order) const
 
void moments (long double center, unsigned maxOrder, long double *moments) const
 
void centralMoments (unsigned maxOrder, long double *moments) const
 
virtual gs::ClassId classId () const
 
virtual bool write (std::ostream &) const
 
- Public Member Functions inherited from npstat::AbsScalableDistribution1D
 AbsScalableDistribution1D (const double location, const double scale)
 
double location () const
 
double scale () const
 
void setLocation (const double v)
 
void setScale (const double v)
 
double density (const double x) const
 
double cdf (const double x) const
 
double exceedance (const double x) const
 
double quantile (const double x) const
 
virtual unsigned random (AbsRandomGenerator &g, double *generatedRandom) const
 
- Public Member Functions inherited from npstat::AbsDistribution1D
bool operator== (const AbsDistribution1D &r) const
 
bool operator!= (const AbsDistribution1D &r) const
 
long double empiricalMoment (long double center, unsigned order, unsigned nIntegrationPoints=1024U, bool useFejerQuadrature=false) const
 
template<class Functor >
double expectation (const Functor &fcn, unsigned nIntegrationPoints=1024U, bool useFejerQuadrature=false) const
 

Static Public Member Functions

static const char * classname ()
 
static unsigned version ()
 
static DeltaMixture1Dread (const gs::ClassId &id, std::istream &in)
 
- Static Public Member Functions inherited from npstat::AbsScalableDistribution1D
static bool read (std::istream &is, double *location, double *scale)
 
- Static Public Member Functions inherited from npstat::AbsDistribution1D
static const char * classname ()
 
static unsigned version ()
 
static AbsDistribution1Dread (const gs::ClassId &id, std::istream &)
 

Protected Member Functions

virtual bool isEqual (const AbsDistribution1D &) const
 

Friends

class ScalableDistribution1DFactory< DeltaMixture1D >
 

Constructor & Destructor Documentation

◆ DeltaMixture1D()

template<typename Real1 , typename Real2 >
npstat::DeltaMixture1D::DeltaMixture1D ( const double  location,
const double  scale,
const Real1 *  unscaledCoords,
const Real2 *  unscaledWeights,
const unsigned  arrayLength 
)
inline

For this constructor, coordinates must be sorted in the increasing order

Member Function Documentation

◆ centralMoments()

void npstat::DeltaMixture1D::centralMoments ( unsigned  maxOrder,
long double *  moments 
) const

A collection of distribution central moments. The array "moments" should have at least "maxOrder+1" elements. On exit, moments[1] will be set to the mean while all other moments will be central.

◆ classId()

virtual gs::ClassId npstat::DeltaMixture1D::classId ( ) const
inlinevirtual

Method related to "geners" I/O

Implements npstat::AbsScalableDistribution1D.

◆ clone()

virtual DeltaMixture1D* npstat::DeltaMixture1D::clone ( ) const
inlinevirtual

"Virtual copy constructor"

Implements npstat::AbsScalableDistribution1D.

◆ integral()

double npstat::DeltaMixture1D::integral ( double  a,
bool  includePointAtA,
double  b,
bool  includePointAtB 
) const

Density integral on the intervals (a, b), [a, b], etc

◆ isEqual()

virtual bool npstat::DeltaMixture1D::isEqual ( const AbsDistribution1D other) const
protectedvirtual

Derived classes should override the following method as long as they have at least one additional data member. Don't forget to call "isEqual" of the base class inside the derived classes.

Reimplemented from npstat::AbsScalableDistribution1D.

◆ moment()

long double npstat::DeltaMixture1D::moment ( long double  center,
unsigned  order 
) const

Distribution moment

◆ moments()

void npstat::DeltaMixture1D::moments ( long double  center,
unsigned  maxOrder,
long double *  moments 
) const

A collection of distribution moments. The array "moments" should have at least "maxOrder+1" elements.


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