Skip to content

Commit

Permalink
fix typo in name of Exponential dists
Browse files Browse the repository at this point in the history
  • Loading branch information
gonuke committed Oct 28, 2024
1 parent 0430d3b commit 8249fa7
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/random_number_generator.h
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ class RandomNumberGenerator {
friend class UniformDoubleDist;
friend class NormalDoubleDist;
friend class PoissonDoubleDist;
friend class ExpontentialDoubleDist;
friend class ExponentialDoubleDist;
friend class FixedIntDist;
friend class UniformIntDist;
friend class NormalIntDist;
Expand Down Expand Up @@ -160,14 +160,14 @@ class PoissonDoubleDist : public DoubleDistribution {
};

/// Exponential distribution requires lambda
class ExpontentialDoubleDist : public DoubleDistribution {
class ExponentialDoubleDist : public DoubleDistribution {
private:
boost::random::exponential_distribution<> dist;
double lambda_;
public:
typedef boost::shared_ptr<ExpontentialDoubleDist> Ptr;
typedef boost::shared_ptr<ExponentialDoubleDist> Ptr;

ExpontentialDoubleDist(double lambda) : dist(lambda), lambda_(lambda) {
ExponentialDoubleDist(double lambda) : dist(lambda), lambda_(lambda) {
if (lambda_ < 0) {
throw ValueError("Lambda must be positive");
}
Expand Down

0 comments on commit 8249fa7

Please sign in to comment.