npstat is hosted by Hepforge, IPPP Durham
NPStat  5.10.0
polyExpectation.hh File Reference

Calculate expectation value of some polynomial w.r.t. a density function. More...

#include "npstat/stat/AbsDistribution1D.hh"
#include "npstat/stat/polyExpectation.icc"

Go to the source code of this file.

Namespaces

 npstat
 

Functions

template<class Poly >
double npstat::polyExpectation (const AbsDistribution1D &distro, const Poly &poly, unsigned degree, unsigned nIntegrationPoints=256U, bool useFejerQuadrature=false)
 

Detailed Description

Calculate expectation value of some polynomial w.r.t. a density function.

Author: I. Volobouev

October 2022