The exponential distribution is a model of with a single parameter lambda. More...
#include <exponential_distribution.hpp>
Classes | |
class | param_type |
Public Types | |
typedef RealType | input_type |
typedef RealType | result_type |
Public Member Functions | |
exponential_distribution (RealType lambda_arg=RealType(1.0)) | |
Constructs an exponential_distribution with a given lambda. More... | |
exponential_distribution (const param_type &parm) | |
Constructs an exponential_distribution from its parameters. More... | |
RealType | lambda () const |
Returns the lambda parameter of the distribution. More... | |
RealType min | BOOST_PREVENT_MACRO_SUBSTITUTION () const |
Returns the smallest value that the distribution can produce. More... | |
RealType max | BOOST_PREVENT_MACRO_SUBSTITUTION () const |
Returns the largest value that the distribution can produce. More... | |
param_type | param () const |
Returns the parameters of the distribution. More... | |
void | param (const param_type &parm) |
Sets the parameters of the distribution. More... | |
void | reset () |
Effects: Subsequent uses of the distribution do not depend on values produced by any engine prior to invoking reset. More... | |
template<class Engine > | |
result_type | operator() (Engine &eng) const |
Returns a random variate distributed according to the exponential distribution. More... | |
template<class Engine > | |
result_type | operator() (Engine &eng, const param_type &parm) const |
Returns a random variate distributed according to the exponential distribution with parameters specified by param. More... | |
BOOST_RANDOM_DETAIL_OSTREAM_OPERATOR (os, exponential_distribution, ed) | |
Writes the distribution to a std::ostream. More... | |
BOOST_RANDOM_DETAIL_ISTREAM_OPERATOR (is, exponential_distribution, ed) | |
Reads the distribution from a std::istream. More... | |
BOOST_RANDOM_DETAIL_EQUALITY_OPERATOR (exponential_distribution, lhs, rhs) | |
Returns true iff the two distributions will produce identical sequences of values given equal generators. More... | |
The exponential distribution is a model of with a single parameter lambda.
It has
typedef RealType boost::random::exponential_distribution< RealType >::input_type |
typedef RealType boost::random::exponential_distribution< RealType >::result_type |
|
inlineexplicit |
Constructs an exponential_distribution with a given lambda.
Requires: lambda > 0
References BOOST_ASSERT.
Referenced by boost::random::exponential_distribution< RealType >::operator()().
|
inlineexplicit |
Constructs an exponential_distribution from its parameters.
|
inline |
Returns the smallest value that the distribution can produce.
|
inline |
Returns the largest value that the distribution can produce.
|
inline |
Returns true iff the two distributions will produce identical sequences of values given equal generators.
|
inline |
Reads the distribution from a std::istream.
|
inline |
Writes the distribution to a std::ostream.
|
inline |
Returns the lambda parameter of the distribution.
|
inline |
Returns a random variate distributed according to the exponential distribution.
References boost::math::ef::log().
|
inline |
Returns a random variate distributed according to the exponential distribution with parameters specified by param.
References boost::random::exponential_distribution< RealType >::exponential_distribution().
|
inline |
Returns the parameters of the distribution.
References boost::random::exponential_distribution< RealType >::param_type::param_type().
|
inline |
Sets the parameters of the distribution.
References boost::random::exponential_distribution< RealType >::param_type::lambda().
|
inline |
Effects: Subsequent uses of the distribution do not depend on values produced by any engine prior to invoking reset.