22 lines
435 B
C
22 lines
435 B
C
|
|
||
|
#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
|