The cauchy distribution is a continuous distribution with two parameters, median and sigma. More...
#include <cauchy_distribution.hpp>
Classes | |
class | param_type |
Public Types | |
typedef RealType | input_type |
typedef RealType | result_type |
Public Member Functions | |
cauchy_distribution (RealType median_arg=RealType(0.0), RealType sigma_arg=RealType(1.0)) | |
Constructs a with the paramters median and sigma . More... | |
cauchy_distribution (const param_type &parm) | |
Constructs a from it's parameters. More... | |
RealType | median () const |
Returns: the "median" parameter of the distribution. More... | |
RealType | sigma () const |
Returns: the "sigma" parameter of the distribution. More... | |
RealType | a () const |
Returns: the "median" parameter of the distribution. More... | |
RealType | b () const |
Returns: the "sigma" 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 |
void | param (const param_type &parm) |
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) |
Returns: A random variate distributed according to the cauchy distribution. More... | |
template<class Engine > | |
result_type | operator() (Engine &eng, const param_type &parm) |
Returns: A random variate distributed according to the cauchy distribution with parameters specified by param. More... | |
BOOST_RANDOM_DETAIL_OSTREAM_OPERATOR (os, cauchy_distribution, cd) | |
Writes the distribution to a std::ostream . More... | |
BOOST_RANDOM_DETAIL_ISTREAM_OPERATOR (is, cauchy_distribution, cd) | |
Reads the distribution from a std::istream . More... | |
BOOST_RANDOM_DETAIL_EQUALITY_OPERATOR (cauchy_distribution, lhs, rhs) | |
Returns true if the two distributions will produce identical sequences of values, given equal generators. More... | |
The cauchy distribution is a continuous distribution with two parameters, median and sigma.
It has
typedef RealType boost::random::cauchy_distribution< RealType >::input_type |
typedef RealType boost::random::cauchy_distribution< RealType >::result_type |
|
inlineexplicit |
Constructs a with the paramters median
and sigma
.
Referenced by boost::random::cauchy_distribution< RealType >::operator()().
|
inlineexplicit |
Constructs a from it's parameters.
|
inline |
Returns: the "median" parameter of the distribution.
|
inline |
Returns: the "sigma" parameter of the distribution.
|
inline |
Returns the smallest value that the distribution can produce.
|
inline |
Returns the largest value that the distribution can produce.
|
inline |
Returns true if 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 "median" parameter of the distribution.
|
inline |
Returns: A random variate distributed according to the cauchy distribution.
References boost::math::ef::tan(), and boost::phoenix::val().
|
inline |
Returns: A random variate distributed according to the cauchy distribution with parameters specified by param.
References boost::random::cauchy_distribution< RealType >::cauchy_distribution().
|
inline |
|
inline |
|
inline |
Effects: Subsequent uses of the distribution do not depend on values produced by any engine prior to invoking reset.
|
inline |
Returns: the "sigma" parameter of the distribution.