![]() |
Chaste Commit::333233612e3dcc941d260418acd7b5ccdc30390e
|
#include <Boost165ExponentialDistribution.hpp>
Classes | |
class | param_type |
Public Types | |
typedef RealType | input_type |
typedef RealType | result_type |
Public Member Functions | |
exponential_distribution_v165 (RealType lambda_arg=RealType(1.0)) | |
exponential_distribution_v165 (const param_type &parm) | |
RealType | lambda () const |
RealType min | BOOST_PREVENT_MACRO_SUBSTITUTION () const |
RealType max | BOOST_PREVENT_MACRO_SUBSTITUTION () const |
param_type | param () const |
void | param (const param_type &parm) |
void | reset () |
template<class Engine > | |
result_type | operator() (Engine &eng) const |
template<class Engine > | |
result_type | operator() (Engine &eng, const param_type &parm) const |
BOOST_RANDOM_DETAIL_OSTREAM_OPERATOR (os, exponential_distribution_v165, ed) | |
BOOST_RANDOM_DETAIL_ISTREAM_OPERATOR (is, exponential_distribution_v165, ed) | |
BOOST_RANDOM_DETAIL_EQUALITY_OPERATOR (exponential_distribution_v165, lhs, rhs) | |
Private Attributes | |
result_type | _lambda |
The exponential distribution is a model of \random_distribution with a single parameter lambda.
It has
The implementation uses the "ziggurat" algorithm, as described in
@blockquote "The Ziggurat Method for Generating Random Variables", George Marsaglia and Wai Wan Tsang, Journal of Statistical Software Volume 5, Number 8 (2000), 1-7. @endblockquote
Definition at line 267 of file Boost165ExponentialDistribution.hpp.
typedef RealType boost::random::exponential_distribution_v165< RealType >::input_type |
Definition at line 270 of file Boost165ExponentialDistribution.hpp.
typedef RealType boost::random::exponential_distribution_v165< RealType >::result_type |
Definition at line 271 of file Boost165ExponentialDistribution.hpp.
|
inlineexplicit |
Constructs an exponential_distribution with a given lambda.
Requires: lambda > 0
Definition at line 321 of file Boost165ExponentialDistribution.hpp.
References boost::random::exponential_distribution_v165< RealType >::_lambda.
|
inlineexplicit |
Constructs an exponential_distribution from its parameters
Definition at line 327 of file Boost165ExponentialDistribution.hpp.
|
inline |
Returns the smallest value that the distribution can produce.
Definition at line 336 of file Boost165ExponentialDistribution.hpp.
|
inline |
Returns the largest value that the distribution can produce.
Definition at line 341 of file Boost165ExponentialDistribution.hpp.
|
inline |
Returns true iff the two distributions will produce identical sequences of values given equal generators.
Definition at line 396 of file Boost165ExponentialDistribution.hpp.
|
inline |
Reads the distribution from a std::istream.
Definition at line 386 of file Boost165ExponentialDistribution.hpp.
|
inline |
Writes the distribution to a std::ostream.
Definition at line 379 of file Boost165ExponentialDistribution.hpp.
|
inline |
Returns the lambda parameter of the distribution.
Definition at line 333 of file Boost165ExponentialDistribution.hpp.
References boost::random::exponential_distribution_v165< RealType >::_lambda.
|
inline |
Returns a random variate distributed according to the exponential distribution.
Definition at line 362 of file Boost165ExponentialDistribution.hpp.
References boost::random::exponential_distribution_v165< RealType >::_lambda.
|
inline |
Returns a random variate distributed according to the exponential distribution with parameters specified by param.
Definition at line 373 of file Boost165ExponentialDistribution.hpp.
|
inline |
Returns the parameters of the distribution.
Definition at line 347 of file Boost165ExponentialDistribution.hpp.
References boost::random::exponential_distribution_v165< RealType >::_lambda.
|
inline |
Sets the parameters of the distribution.
Definition at line 349 of file Boost165ExponentialDistribution.hpp.
References boost::random::exponential_distribution_v165< RealType >::_lambda, and boost::random::exponential_distribution_v165< RealType >::param_type::lambda().
|
inline |
Effects: Subsequent uses of the distribution do not depend on values produced by any engine prior to invoking reset.
Definition at line 355 of file Boost165ExponentialDistribution.hpp.
|
private |
Returns true iff the two distributions will produce different sequences of values given equal generators.
Definition at line 408 of file Boost165ExponentialDistribution.hpp.
Referenced by boost::random::exponential_distribution_v165< RealType >::exponential_distribution_v165(), boost::random::exponential_distribution_v165< RealType >::lambda(), boost::random::exponential_distribution_v165< RealType >::operator()(), boost::random::exponential_distribution_v165< RealType >::param(), and boost::random::exponential_distribution_v165< RealType >::param().