Boost C++ Libraries Home Libraries People FAQ More

PrevUpHomeNext

Class param_type

boost::random::generalized_inverse_gaussian_distribution::param_type

Synopsis

// In header: <boost/random/generalized_inverse_gaussian_distribution.hpp>



class param_type {
public:
  // types
  typedef  ;

  // public member functions
  ( = ,  = ,  = );
   () ;
   () ;
   () ;

  // friend functions
  template<typename CharT, typename Traits> 
     
    (, );
  template<typename CharT, typename Traits> 
     
    (, );
   (, );
   (, );
};

Description

param_type public member functions

  1. ( p = ,  a = ,  b = );

    Constructs a param_type object from the "p", "a", and "b" parameters.

    Requires: a > 0 && b >= 0 if p > 0, a > 0 && b > 0 if p == 0, a >= 0 && b > 0 if p < 0

  2.  () ;

    Returns the "p" parameter of the distribution.

  3.  () ;

    Returns the "a" parameter of the distribution.

  4.  () ;

    Returns the "b" parameter of the distribution.

param_type friend functions

  1. template<typename CharT, typename Traits> 
       
      ( os, 
                  param);

    Writes a param_type to a std::ostream.

  2. template<typename CharT, typename Traits> 
       
      ( is, 
                  param);

    Reads a param_type from a std::istream.

  3.  ( lhs,  rhs);

    Returns true if the two sets of parameters are the same.

  4.  ( lhs,  rhs);

    Returns true if the two sets of parameters are different.


PrevUpHomeNext