Ignore:
Timestamp:
Dec 19, 2006, 9:59:19 AM (16 years ago)
Author:
Jari Häkkinen
Message:

Addresses #65 and #170.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/yat/random/random.cc

    r680 r706  
    8585  }
    8686
     87  // --------------------- Discrete distribtuions ---------------------
     88
     89  Discrete::Discrete(void)
     90    : rng_(RNG::instance())
     91  {
     92  }
     93
     94 
     95  Discrete::~Discrete(void)
     96  {
     97  }
     98
    8799
    88100  DiscreteGeneral::DiscreteGeneral(const statistics::Histogram& hist)
     
    103115  }
    104116
     117
     118  Poisson::Poisson(const double m)
     119    : m_(m)
     120  {
     121  }
     122
     123  // --------------------- Continuous distribtuions ---------------------
     124
     125  Continuous::Continuous(void)
     126    : rng_(RNG::instance())
     127  {
     128  }
     129
     130
     131  Continuous::~Continuous(void)
     132  {
     133  }
     134
     135
     136  ContinuousGeneral::ContinuousGeneral(const statistics::Histogram& hist)
     137    : discrete_(DiscreteGeneral(hist)), hist_(hist)
     138  {
     139  }
     140
     141
     142  Exponential::Exponential(const double m)
     143    : m_(m)
     144  {
     145  }
     146
     147
     148  Gaussian::Gaussian(const double s, const double m)
     149    : m_(m), s_(s)
     150  {
     151  }
     152
    105153}}} // of namespace random, yat, and theplu
Note: See TracChangeset for help on using the changeset viewer.