cpp/times/base.cpp
Dominik Demuth 17f95627a9 first commit
2024-08-16 19:55:27 +02:00

14 lines
323 B
C++

//
// Created by dominik on 8/12/24.
//
#include "base.h"
Distribution::Distribution(const double tau, std::mt19937_64 &rng) : m_tau(tau), m_rng(rng) {}
Distribution::Distribution(std::mt19937_64 &rng) : m_rng(rng) {}
double Distribution::tau_wait() const {
return std::exponential_distribution(1./m_tau)(m_rng);
}