File indexing completed on 2025-08-03 08:09:24
0001
0002
0003
0004
0005
0006
0007
0008
0009 #include "Fatras/Kernel/detail/RandomNumberDistributions.hpp"
0010
0011 Fatras::LandauDist::param_type::param_type(double mean, double scale)
0012 : mean(mean), scale(scale) {}
0013
0014 bool Fatras::LandauDist::param_type::operator==(const param_type &other) const {
0015 return (mean == other.mean) && (scale == other.scale);
0016 }
0017
0018 Fatras::LandauDist::LandauDist(double mean, double scale)
0019 : m_cfg(mean, scale) {}
0020
0021 Fatras::LandauDist::LandauDist(const param_type &cfg) : m_cfg(cfg) {}
0022
0023 Fatras::LandauDist::result_type Fatras::LandauDist::min() const {
0024 return -std::numeric_limits<double>::infinity();
0025 }
0026
0027 Fatras::LandauDist::result_type Fatras::LandauDist::max() const {
0028 return std::numeric_limits<double>::infinity();
0029 }
0030
0031 bool Fatras::LandauDist::operator==(const LandauDist &other) const {
0032 return (m_cfg == other.m_cfg);
0033 }