# Changeset 368 for trunk/lib/random/Random.h

Ignore:
Timestamp:
Aug 5, 2005, 2:01:26 PM (16 years ago)
Message:

removed random in class names. No need since they have a random namespace

File:
1 edited

Unmodified
Added
Removed
• ## trunk/lib/random/Random.h

 r367 // $Id$ // $Id$ #ifndef _theplu_random_ /// Abstract base class for continuous random distributions. /// class RandomContinuous { public: /// /// @brief Constructor /// inline RandomContinuous(void) { rng_=RNG::instance(89); } class Continuous { public: /// /// @brief Constructor /// inline Continuous(void) { rng_=RNG::instance(89); } /// /// Variance: \f$\frac{1}{12} \f$ /// class RandomContinuousUniform : public RandomContinuous class ContinuousUniform : public Continuous { public: /// Variance: \f$\sigma^2 \f$ /// class RandomGaussian : public RandomContinuous class Gaussian : public Continuous { public: /// m is the expectation value \f$\mu \f$ of the distribution /// inline RandomGaussian(const double s=1, const double m=0) inline Gaussian(const double s=1, const double m=0) : m_(m), s_(s) {} /// Variance: \f$m^2 \f$ /// class RandomExponential : public RandomContinuous class Exponential : public Continuous { public: /// @param m is the expectation value of the distribution. /// inline RandomExponential(const double m=1) inline Exponential(const double m=1) : m_(m){} /// produce a random value k consistent with its probability. /// class RandomDiscrete { public: /// /// @brief Constructor /// inline RandomDiscrete(void) { rng_=RNG::instance(89); } class Discrete { public: /// /// @brief Constructor /// inline Discrete(void) { rng_=RNG::instance(89); } /// /// class RandomDiscreteUniform : public RandomDiscrete class DiscreteUniform : public Discrete { public: /// can be generated \f$(a) \f$ /// inline RandomDiscreteUniform(const u_long range, const long min=0) inline DiscreteUniform(const u_long range, const long min=0) : min_(min), range_(range) {} /// Variance: \f$m \f$ /// class RandomPoisson : public RandomDiscrete class Poisson : public Discrete { public: /// /// @param m is expectation value inline RandomPoisson(const double m=1) inline Poisson(const double m=1) : m_(m){} /// /// @return a Poisson distributed number. /// @return A Poisson distributed number. /// inline double operator()(void) const /// /// @return a Poisson distributed number with expectation value \a /// @return A Poisson distributed number with expectation value \a /// m /// @note this operator ignores parameters set in Constructor /// @brief General /// class RandomDiscreteGeneral : public RandomDiscrete { class DiscreteGeneral : public Discrete { };
Note: See TracChangeset for help on using the changeset viewer.