|
|
template<typename Real1 , typename Real2 > |
| DeltaMixture1D (const double location, const double scale, const Real1 *unscaledCoords, const Real2 *unscaledWeights, const unsigned arrayLength) |
|
virtual DeltaMixture1D * | clone () 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 |
|
| 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 |
|
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 const char * | classname () |
|
static unsigned | version () |
|
static DeltaMixture1D * | read (const gs::ClassId &id, std::istream &in) |
|
static bool | read (std::istream &is, double *location, double *scale) |
|
static const char * | classname () |
|
static unsigned | version () |
|
static AbsDistribution1D * | read (const gs::ClassId &id, std::istream &) |
|
|
class | ScalableDistribution1DFactory< DeltaMixture1D > |
|
◆ 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
◆ 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 |
◆ clone()
◆ 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 |
◆ 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:
|