slope 0.29.0
Loading...
Searching...
No Matches
constants.h
Go to the documentation of this file.
1
10#pragma once
11
12#include <limits>
13
14namespace slope {
15
23namespace constants {
24
27constexpr double EPSILON = 1e-10;
28
30constexpr double P_MIN = 1e-9;
31
33constexpr double P_MAX = 1.0 - P_MIN;
34
36constexpr double POS_INF = std::numeric_limits<double>::max();
37
39constexpr double NEG_INF = std::numeric_limits<double>::lowest();
40
41} // namespace constants
42} // namespace slope
constexpr double POS_INF
Representation of positive infinity using maximum double value.
Definition constants.h:36
constexpr double EPSILON
Small value used for floating-point comparisons to handle precision issues.
Definition constants.h:27
constexpr double NEG_INF
Representation of negative infinity using lowest double value.
Definition constants.h:39
constexpr double P_MIN
Minimum allowed probability value to avoid numerical underflow.
Definition constants.h:30
constexpr double P_MAX
Maximum allowed probability value to avoid numerical issues near 1.0.
Definition constants.h:33
Namespace containing SLOPE regression implementation.
Definition clusters.cpp:5