Class Pfqn_explicit.SignedLse

java.lang.Object
jline.api.pfqn.nc.Pfqn_explicit.SignedLse
Enclosing class:
Pfqn_explicit

public static final class Pfqn_explicit.SignedLse extends Object
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 Details

    • lS

      public final double lS
      Logarithm of |S|.
    • sgn

      public final int sgn
      Sign of S, zero when every term dropped out.
    • lossDigits

      public final double lossDigits
      Decimal digits lost to cancellation.
  • Constructor Details

    • SignedLse

      public SignedLse(double lS, int sgn, double lossDigits)