Class ProcessDerivativeCalculator.DerivativeResult
java.lang.Object
neqsim.process.mpc.ProcessDerivativeCalculator.DerivativeResult
- Enclosing class:
ProcessDerivativeCalculator
Result container for derivative calculations with error estimates.
- Version:
- 1.0
- Author:
- NeqSim Development Team
-
Field Summary
FieldsModifier and TypeFieldDescriptiondoubleEstimated error (if available).Error message if not valid.booleanWhether calculation converged.doubleStep size used.doubleThe calculated derivative value. -
Constructor Summary
ConstructorsConstructorDescriptionDerivativeResult(double value, double stepSize) Constructor for valid result.DerivativeResult(String errorMessage) Constructor for invalid result. -
Method Summary
-
Field Details
-
value
public double valueThe calculated derivative value. -
errorEstimate
public double errorEstimateEstimated error (if available). -
stepSize
public double stepSizeStep size used. -
isValid
public boolean isValidWhether calculation converged. -
errorMessage
Error message if not valid.
-
-
Constructor Details
-
DerivativeResult
public DerivativeResult(double value, double stepSize) Constructor for valid result.- Parameters:
value- the calculated derivative valuestepSize- the step size used for calculation
-
DerivativeResult
Constructor for invalid result.- Parameters:
errorMessage- the error message describing the failure
-