Functions | |
| double | posteriorIndeterminateBand (double scale) noexcept |
| bool | exceedsThreshold (double value, double threshold) noexcept |
| bool | withinThreshold (double value, double threshold) noexcept |
| bool | clearlyGreater (double candidate, double incumbent) noexcept |
| double | quantizeToPosteriorBand (double value) noexcept |
| void | perturbPosterior (double &energy, Eigen::VectorXd &gradient) |
| double | exp (double x) noexcept |
| double | log (double x) noexcept |
| double | lgamma (double x) noexcept |
| double | erf (double x) noexcept |
| double | erfc (double x) noexcept |
|
inlinenoexcept |
Strict argmax with a scale-aware tie. The lower index keeps the incumbent unless candidate is larger by more than the band of the larger magnitude. +inf beats a finite incumbent; NaN does not.
Definition at line 49 of file DecisionBand.h.
|
noexcept |
Definition at line 88 of file PortableMath.cpp.
|
noexcept |
Definition at line 112 of file PortableMath.cpp.
|
inlinenoexcept |
True only when value clears threshold by more than the band. A last-bit overshoot does not open a drift break, a refit, or an acquisition. Non-finite inputs do not.
Definition at line 32 of file DecisionBand.h.
|
noexcept |
Definition at line 20 of file PortableMath.cpp.
|
noexcept |
Definition at line 28 of file PortableMath.cpp.
|
noexcept |
Definition at line 24 of file PortableMath.cpp.
|
inline |
Multiply a posterior energy and gradient by 1 ± amplitude, then snap both onto the band so the sign draw is invisible to the search.
GPR_POSTERIOR_RELATIVE_NOISE is the amplitude (the harness uses 1e-12). GPR_POSTERIOR_NOISE_SEED selects the sign sequence. Unset amplitude leaves the posterior unchanged. The sequence is deterministic for a seed and resets with the process.
Definition at line 87 of file DecisionBand.h.
|
inlinenoexcept |
Half-width of the indeterminate band on a posterior-derived comparison.
sqrt(eps) is the finite-difference step already used to probe the hyperparameter objective. A gap smaller than that fraction of the scale is the rounding of the probe, not a new discrete action. The scale is the threshold (or the larger of the two scores); it is not a tolerance fitted to a reaction.
Definition at line 22 of file DecisionBand.h.
|
inlinenoexcept |
Snap a posterior component onto the indeterminate band.
A relative perturbation smaller than sqrt(eps) — the harness uses 1e-12 — cannot leave the bin except exactly on its edge. The search then sees one posterior, not a last-bit family of them.
Definition at line 65 of file DecisionBand.h.
|
inlinenoexcept |
Complement of exceedsThreshold for finite inputs: inside the threshold, including the band on its far side.
Definition at line 40 of file DecisionBand.h.