Boost  v1.57.0
doxygen for www.boost.org
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
boost::random::weibull_distribution< RealType > Class Template Reference

The Weibull distribution is a real valued distribution with two parameters a and b, producing values >= 0. More...

#include <weibull_distribution.hpp>

Classes

class  param_type
 

Public Types

typedef RealType result_type
 
typedef RealType input_type
 

Public Member Functions

 weibull_distribution (RealType a_arg=1.0, RealType b_arg=1.0)
 Constructs a weibull_distribution from its "a" and "b" parameters. More...
 
 weibull_distribution (const param_type &parm)
 Constructs a weibull_distribution from its parameters. More...
 
template<class URNG >
RealType operator() (URNG &urng) const
 Returns a random variate distributed according to the weibull_distribution. More...
 
template<class URNG >
RealType operator() (URNG &urng, const param_type &parm) const
 Returns a random variate distributed accordint to the Weibull distribution with parameters specified by param. More...
 
RealType a () const
 Returns the "a" parameter of the distribution. More...
 
RealType b () const
 Returns the "b" 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...
 
 BOOST_RANDOM_DETAIL_OSTREAM_OPERATOR (os, weibull_distribution, wd)
 Writes a weibull_distribution to a std::ostream. More...
 
 BOOST_RANDOM_DETAIL_ISTREAM_OPERATOR (is, weibull_distribution, wd)
 Reads a weibull_distribution from a std::istream. More...
 
 BOOST_RANDOM_DETAIL_EQUALITY_OPERATOR (weibull_distribution, lhs, rhs)
 Returns true if the two instances of weibull_distribution will return identical sequences of values given equal generators. More...
 

Detailed Description

template<class RealType = double>
class boost::random::weibull_distribution< RealType >

The Weibull distribution is a real valued distribution with two parameters a and b, producing values >= 0.

It has $\displaystyle p(x) = \frac{a}{b}\left(\frac{x}{b}\right)^{a-1}e^{-\left(\frac{x}{b}\right)^a}$.

Member Typedef Documentation

template<class RealType = double>
typedef RealType boost::random::weibull_distribution< RealType >::input_type
template<class RealType = double>
typedef RealType boost::random::weibull_distribution< RealType >::result_type

Constructor & Destructor Documentation

template<class RealType = double>
boost::random::weibull_distribution< RealType >::weibull_distribution ( RealType  a_arg = 1.0,
RealType  b_arg = 1.0 
)
inlineexplicit

Constructs a weibull_distribution from its "a" and "b" parameters.

Requires: a > 0 && b > 0

Referenced by boost::random::weibull_distribution< RealType >::operator()().

template<class RealType = double>
boost::random::weibull_distribution< RealType >::weibull_distribution ( const param_type parm)
inlineexplicit

Constructs a weibull_distribution from its parameters.

Member Function Documentation

template<class RealType = double>
RealType boost::random::weibull_distribution< RealType >::a ( ) const
inline

Returns the "a" parameter of the distribution.

template<class RealType = double>
RealType boost::random::weibull_distribution< RealType >::b ( ) const
inline

Returns the "b" parameter of the distribution.

template<class RealType = double>
RealType min boost::random::weibull_distribution< RealType >::BOOST_PREVENT_MACRO_SUBSTITUTION ( ) const
inline

Returns the smallest value that the distribution can produce.

template<class RealType = double>
RealType max boost::random::weibull_distribution< RealType >::BOOST_PREVENT_MACRO_SUBSTITUTION ( ) const
inline

Returns the largest value that the distribution can produce.

template<class RealType = double>
boost::random::weibull_distribution< RealType >::BOOST_RANDOM_DETAIL_EQUALITY_OPERATOR ( weibull_distribution< RealType >  ,
lhs  ,
rhs   
)
inline

Returns true if the two instances of weibull_distribution will return identical sequences of values given equal generators.

template<class RealType = double>
boost::random::weibull_distribution< RealType >::BOOST_RANDOM_DETAIL_ISTREAM_OPERATOR ( is  ,
weibull_distribution< RealType >  ,
wd   
)
inline

Reads a weibull_distribution from a std::istream.

template<class RealType = double>
boost::random::weibull_distribution< RealType >::BOOST_RANDOM_DETAIL_OSTREAM_OPERATOR ( os  ,
weibull_distribution< RealType >  ,
wd   
)
inline

Writes a weibull_distribution to a std::ostream.

template<class RealType = double>
template<class URNG >
RealType boost::random::weibull_distribution< RealType >::operator() ( URNG &  urng) const
inline

Returns a random variate distributed according to the weibull_distribution.

References boost::math::ef::log(), and pow().

template<class RealType = double>
template<class URNG >
RealType boost::random::weibull_distribution< RealType >::operator() ( URNG &  urng,
const param_type parm 
) const
inline

Returns a random variate distributed accordint to the Weibull distribution with parameters specified by param.

References boost::random::weibull_distribution< RealType >::weibull_distribution().

template<class RealType = double>
param_type boost::random::weibull_distribution< RealType >::param ( ) const
inline

Returns the parameters of the distribution.

References boost::random::weibull_distribution< RealType >::param_type::param_type().

template<class RealType = double>
void boost::random::weibull_distribution< RealType >::param ( const param_type parm)
inline
template<class RealType = double>
void boost::random::weibull_distribution< RealType >::reset ( void  )
inline

Effects: Subsequent uses of the distribution do not depend on values produced by any engine prior to invoking reset.


The documentation for this class was generated from the following file: