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

The Fisher F distribution is a real valued distribution with two parameters m and n. More...

#include <fisher_f_distribution.hpp>

Classes

class  param_type
 

Public Types

typedef RealType result_type
 
typedef RealType input_type
 

Public Member Functions

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

Detailed Description

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

The Fisher F distribution is a real valued distribution with two parameters m and n.

It has $\displaystyle p(x) = \frac{\Gamma((m+n)/2)}{\Gamma(m/2)\Gamma(n/2)} \left(\frac{m}{n}\right)^{m/2} x^{(m/2)-1} \left(1+\frac{mx}{n}\right)^{-(m+n)/2} $.

Member Typedef Documentation

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

Constructor & Destructor Documentation

template<class RealType = double>
boost::random::fisher_f_distribution< RealType >::fisher_f_distribution ( RealType  m_arg = RealType(1.0),
RealType  n_arg = RealType(1.0) 
)
inlineexplicit

Constructs a fisher_f_distribution from its "m" and "n" parameters.

Requires: m > 0 and n > 0

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

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

Constructs an fisher_f_distribution from its parameters.

Member Function Documentation

template<class RealType = double>
RealType min boost::random::fisher_f_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::fisher_f_distribution< RealType >::BOOST_PREVENT_MACRO_SUBSTITUTION ( ) const
inline

Returns the largest value that the distribution can produce.

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

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

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

Reads an fisher_f_distribution from a std::istream.

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

Writes an fisher_f_distribution to a std::ostream.

template<class RealType = double>
RealType boost::random::fisher_f_distribution< RealType >::m ( ) const
inline

Returns the "m" parameter of the distribution.

template<class RealType = double>
RealType boost::random::fisher_f_distribution< RealType >::n ( ) const
inline

Returns the "n" parameter of the distribution.

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

Returns a random variate distributed according to the F distribution.

References boost::random::fisher_f_distribution< RealType >::param_type::m(), and boost::random::fisher_f_distribution< RealType >::param_type::n().

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

Returns a random variate distributed according to the F distribution with parameters specified by param.

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

template<class RealType = double>
void boost::random::fisher_f_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: