29 lines
548 B
C++
29 lines
548 B
C++
//
|
|
// Created by dominik on 8/12/24.
|
|
//
|
|
|
|
#ifndef RWSIM_TIMESBASE_H
|
|
#define RWSIM_TIMESBASE_H
|
|
|
|
#include <random>
|
|
|
|
class Distribution {
|
|
public:
|
|
virtual ~Distribution() = default;
|
|
|
|
Distribution(double, std::mt19937_64&);
|
|
explicit Distribution(std::mt19937_64&);
|
|
|
|
[[nodiscard]] double getTau() const { return m_tau; }
|
|
void setTau(const double tau) { m_tau = tau;}
|
|
|
|
virtual void draw_tau() = 0;
|
|
[[nodiscard]] double tau_wait() const;
|
|
|
|
private:
|
|
double m_tau{1.};
|
|
std::mt19937_64& m_rng;
|
|
};
|
|
|
|
#endif //RWSIM_TIMESBASE_H
|