Boost C++ Libraries

...one of the most highly regarded and expertly designed C++ library projects in the world. Herb Sutter and Andrei Alexandrescu, C++ Coding Standards

This is the documentation for an old version of boost. Click here for the latest Boost documentation.
PrevUpHomeNext

Class template gamma_distribution

boost::gamma_distribution

Synopsis

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

template<typename RealType = double> 
class gamma_distribution {
public:
  // types
  typedef RealType input_type; 
  typedef RealType result_type;

  // construct/copy/destruct
  gamma_distribution(const result_type & = result_type(1));

  // public member functions
  RealType alpha() const;
  void reset();
  template<typename Engine> result_type operator()(Engine &);
};

Description

The gamma distribution is a continuous distribution with a single parameter alpha.

It has .

gamma_distribution public construct/copy/destruct

  1. gamma_distribution(const result_type & alpha_arg = result_type(1));

gamma_distribution public member functions

  1. RealType alpha() const;
  2. void reset();
  3. template<typename Engine> result_type operator()(Engine & eng);

PrevUpHomeNext