Class NumericalEstimate

java.lang.Object
jdistlib.finance.NumericalEstimate

public final class NumericalEstimate extends Object
Immutable diagnostics for an approximate scalar calculation.
  • Constructor Details

    • NumericalEstimate

      public NumericalEstimate(double value, double absoluteError, boolean converged, int evaluations, String strategy, String warning)
  • Method Details

    • getValue

      public double getValue()
    • getAbsoluteError

      public double getAbsoluteError()
    • isConverged

      public boolean isConverged()
    • getEvaluations

      public int getEvaluations()
    • getStrategy

      public String getStrategy()
    • getWarning

      public String getWarning()
    • hasWarning

      public boolean hasWarning()
    • valueOrThrow

      public double valueOrThrow()
      Returns the value only after enforcing the checked-result contract.