24 typedef vector<Double> Listd;
31 typedef vector<Elem> Table;
virtual Real mean() const
Calc mean.
Definition: DiscreteGen.h:43
Double_::Real Double
double type
Definition: Double.h:60
Random number generator interface.
Definition: Gen.h:11
Generate a random integer variate from a generalized discrete distribution.
Definition: DiscreteGen.h:19
friend class DiscreteGen_
Definition: DiscreteGen.h:23
szt variateMax() const
Definition: DiscreteGen.h:47
DiscreteGen_< Float > DiscreteGen_f
Definition: DiscreteGen.h:58
Double_::Real Double
Definition: Dist.h:20
virtual Real next() const
Get next randomly distributed variate. Requires a random generator (see ctor or setGen()) ...
Definition: DiscreteGen.cpp:128
float Real
Real number type. See Real_ for real number operations and constants.
Definition: Real.h:21
size_t szt
Size type, shorthand for size_t.
Definition: Core.h:90
virtual Real cdfInv(Real P) const
Inverse of the CDF.
Definition: DiscreteGen.cpp:156
DiscreteGen_< Real > DiscreteGen
Definition: DiscreteGen.h:57
virtual Real pdf(Real x) const
Probability Density Function.
Definition: DiscreteGen.cpp:136
vector< Real > List
Definition: DiscreteGen.h:35
szt variateMin() const
Definition: DiscreteGen.h:46
virtual Real cdf(Real x) const
Cumulative Distribution Function.
Definition: DiscreteGen.cpp:145
DiscreteGen_< Double > DiscreteGen_d
Definition: DiscreteGen.h:59
Global Honeycomb namespace.
virtual Real variance() const
Calc variance.
Definition: DiscreteGen.h:44
Base class for all random distributions.
Definition: Dist.h:15