slope 0.29.0
Loading...
Searching...
No Matches
slope::constants Namespace Reference

Namespace containing constants used in the slope library. More...

Variables

constexpr double EPSILON = 1e-10
 Small value used for floating-point comparisons to handle precision issues.
 
constexpr double P_MIN = 1e-9
 Minimum allowed probability value to avoid numerical underflow.
 
constexpr double P_MAX = 1.0 - P_MIN
 Maximum allowed probability value to avoid numerical issues near 1.0.
 
constexpr double POS_INF = std::numeric_limits<double>::max()
 Representation of positive infinity using maximum double value.
 
constexpr double NEG_INF = std::numeric_limits<double>::lowest()
 Representation of negative infinity using lowest double value.
 

Detailed Description

Namespace containing constants used in the slope library.

This namespace contains various constants used in the slope library, such as machine epsilon, minimum and maximum probabilities, and positive and negative infinity.

Variable Documentation

◆ EPSILON

constexpr double slope::constants::EPSILON = 1e-10
constexpr

Small value used for floating-point comparisons to handle precision issues.

Definition at line 27 of file constants.h.

◆ NEG_INF

constexpr double slope::constants::NEG_INF = std::numeric_limits<double>::lowest()
constexpr

Representation of negative infinity using lowest double value.

Definition at line 39 of file constants.h.

◆ P_MAX

constexpr double slope::constants::P_MAX = 1.0 - P_MIN
constexpr

Maximum allowed probability value to avoid numerical issues near 1.0.

Definition at line 33 of file constants.h.

◆ P_MIN

constexpr double slope::constants::P_MIN = 1e-9
constexpr

Minimum allowed probability value to avoid numerical underflow.

Definition at line 30 of file constants.h.

◆ POS_INF

constexpr double slope::constants::POS_INF = std::numeric_limits<double>::max()
constexpr

Representation of positive infinity using maximum double value.

Definition at line 36 of file constants.h.