Commit a26cb77e authored by Daniil Rastorguev's avatar Daniil Rastorguev
Browse files

Added alias for boost::exponential_distribution

parent bc00a479
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -12,6 +12,7 @@
#ifndef ALLPIX_RANDOM_DISTRIBUTIONS_H
#define ALLPIX_RANDOM_DISTRIBUTIONS_H

#include <boost/random/exponential_distribution.hpp>
#include <boost/random/normal_distribution.hpp>
#include <boost/random/piecewise_linear_distribution.hpp>
#include <boost/random/poisson_distribution.hpp>
@@ -22,6 +23,7 @@ namespace allpix {
    template <typename T> using piecewise_linear_distribution = boost::random::piecewise_linear_distribution<T>;
    template <typename T> using poisson_distribution = boost::random::poisson_distribution<T>;
    template <typename T> using uniform_real_distribution = boost::random::uniform_real_distribution<T>;
    template <typename T> using exponential_distribution = boost::random::exponential_distribution<T>;
} // namespace allpix

#endif // ALLPIX_RANDOM_DISTRIBUTIONS_H