# Changeset 706 for trunk/yat/random

Ignore:
Timestamp:
Dec 19, 2006, 9:59:19 AM (17 years ago)
Message:

Addresses #65 and #170.

Location:
trunk/yat/random
Files:
2 edited

### Legend:

Unmodified
 r680 /// @brief Constructor /// inline Discrete(void) { rng_=RNG::instance(); } inline virtual ~Discrete(void) { } Discrete(void); /// /// @brief The destructor /// virtual ~Discrete(void); /// /// /// @param m is expectation value inline Poisson(const double m=1) : m_(m) {} /// Poisson(const double m=1); /// /// @brief Constructor /// inline Continuous(void) { rng_=RNG::instance(); } inline virtual ~Continuous(void) { } Continuous(void); /// /// @brief The destructor /// virtual ~Continuous(void); /// /// @param hist is a Histogram defining the probability distribution /// inline ContinuousGeneral(const statistics::Histogram& hist) : discrete_(DiscreteGeneral(hist)), hist_(hist) {} /// /// @brief Destructor /// ~ContinuousGeneral(void); ContinuousGeneral(const statistics::Histogram& hist); /// /// @param m is the expectation value of the distribution. /// inline Exponential(const double m=1) : m_(m) {} inline Exponential(const double m=1); /// /// /// @brief Constructor /// /// @param s is the standard deviation \f$\sigma \f$ of distribution /// @param m is the expectation value \f$\mu \f$ of the distribution /// inline Gaussian(const double s=1, const double m=0) : m_(m), s_(s) {} Gaussian(const double s=1, const double m=0); /// /// @return A random Gaussian number with standard deviation \a s /// and expectation value 0. /// /// @note this operator ignores parameters given in Constructor /// /// @return A random Gaussian number with standard deviation \a s /// and expectation value \a m. /// /// @note this operator ignores parameters given in Constructor ///