Class SR1.SR1Factory

Enclosing class:
SR1

Builder for SR1; configure via SR1.FACTORY.
  • Constructor Details

    • SR1Factory

      public SR1Factory()
      Public so callers can construct a fresh factory per build instead of mutating the shared SR1.FACTORY singleton (whose state leaks across calls and tests). Same fix pattern as ScalarFunction.ScalarFunctionFactory.
  • Method Details

    • minDenominator

      public SR1.SR1Factory minDenominator(double minDenominator)
      Set the minimum denominator magnitude allowed in the update, scaled by a normalization factor. When the condition is violated the update is skipped. Default 1e-8.
      Parameters:
      minDenominator - denominator-magnitude threshold
      Returns:
      this factory, for chaining
    • build

      public SR1 build()
      Build a configured SR1 instance.
      Returns:
      a fresh SR1 with the configured options