cpp/times/lognormal.h

22 lines
435 B
C
Raw Permalink Normal View History

2024-09-16 17:52:51 +00:00
#ifndef LOGNORMAL_H
#define LOGNORMAL_H
#include "base.h"
#include <random>
class LogNormalDistribution final : public Distribution {
public:
LogNormalDistribution(double, double, std::mt19937_64&);
explicit LogNormalDistribution(std::mt19937_64 &rng);
void initialize() override;
void draw_tau() override;
private:
double m_sigma{1};
std::lognormal_distribution<> m_distribution;
};
#endif //LOGNORMAL_H