Stochastic Loading Module
lognormal_dist.h
1 #ifndef _LOGNORMAL_DIST_H_
2 #define _LOGNORMAL_DIST_H_
3 
4 #include <string>
5 #include <vector>
6 #include <boost/math/distributions/lognormal.hpp>
7 #include "distribution.h"
8 
9 namespace stochastic {
14  public:
18  LognormalDistribution() = delete;
19 
26  LognormalDistribution(double mean, double std_dev);
27 
32 
37  std::string name() const override { return "LognormalDist"; };
38 
46  std::vector<double> cumulative_dist_func(
47  const std::vector<double>& locations) const override;
48 
56  std::vector<double> inv_cumulative_dist_func(
57  const std::vector<double>& probabilities) const override;
58 
59  protected:
60  double mean_;
61  double std_dev_;
62  boost::math::lognormal distribution_;
63 };
64 } // namespace stochastic
65 
66 #endif // _LOGNORMAL_DIST_H_
boost::math::lognormal distribution_
std::vector< double > cumulative_dist_func(const std::vector< double > &locations) const override
std::string name() const override
std::vector< double > inv_cumulative_dist_func(const std::vector< double > &probabilities) const override