Package jline.api.pfqn.nc
Class Pfqn_explicit.SignedLse
java.lang.Object
jline.api.pfqn.nc.Pfqn_explicit.SignedLse
- Enclosing class:
- Pfqn_explicit
Signed log-sum-exp of S = sum_i s_i exp(l_i): log|S|, sign(S), digits lost.
Public because Pfqn_explicit_ld carries the same closed form as the inner kernel of its own two sums and needs the sign alongside the magnitude.
-
Field Summary
FieldsModifier and TypeFieldDescriptionfinal doubleDecimal digits lost to cancellation.final doubleLogarithm of |S|.final intSign of S, zero when every term dropped out. -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
lS
public final double lSLogarithm of |S|. -
sgn
public final int sgnSign of S, zero when every term dropped out. -
lossDigits
public final double lossDigitsDecimal digits lost to cancellation.
-
-
Constructor Details
-
SignedLse
public SignedLse(double lS, int sgn, double lossDigits)
-