Package jdistlib.finance
Class NumericalEstimate
java.lang.Object
jdistlib.finance.NumericalEstimate
Immutable diagnostics for an approximate scalar calculation.
-
Constructor Summary
ConstructorsConstructorDescriptionNumericalEstimate(double value, double absoluteError, boolean converged, int evaluations, String strategy, String warning) -
Method Summary
Modifier and TypeMethodDescriptiondoubleintdoublegetValue()booleanbooleandoubleReturns the value only after enforcing the checked-result contract.
-
Constructor Details
-
NumericalEstimate
-
-
Method Details
-
getValue
public double getValue() -
getAbsoluteError
public double getAbsoluteError() -
isConverged
public boolean isConverged() -
getEvaluations
public int getEvaluations() -
getStrategy
-
getWarning
-
hasWarning
public boolean hasWarning() -
valueOrThrow
public double valueOrThrow()Returns the value only after enforcing the checked-result contract.
-