Public Member Functions |
Static Public Member Functions |
Protected Member Functions |
List of all members
npstat::DistributionMix1D Class Reference
Inheritance diagram for npstat::DistributionMix1D:
Detailed DescriptionOne-dimensional mixture of statistical distributions Member Function Documentation◆ add()
Add a component to the mixture. Weight must be non-negative. All weights will be normalized internally so that their sum is 1. ◆ cdf()
Cumulative distribution function Implements npstat::AbsDistribution1D. ◆ classId()
Prototype needed for I/O Implements npstat::AbsDistribution1D. ◆ clone()
"Virtual copy constructor" Implements npstat::AbsDistribution1D. ◆ density()
Probability density Implements npstat::AbsDistribution1D. ◆ exceedance()
1 - cdf, implementations should avoid subtractive cancellation Implements npstat::AbsDistribution1D. ◆ getComponent()
Get the mixture component with the given number ◆ getWeight()
Get the component weight ◆ isEqual()
Comparison for equality. To be implemented by derived classes. Implements npstat::AbsDistribution1D. ◆ nComponents()
Number of mixture components ◆ quantile()
The quantile function Implements npstat::AbsDistribution1D. ◆ random()
Random number generator according to this distribution Reimplemented from npstat::AbsDistribution1D. ◆ setWeights()
Set all weights. Number of weights provided should be equal to the number of components. Weights will be normalized internally. The documentation for this class was generated from the following file:
Generated by 1.9.1 |