Class CalibrationResult
java.lang.Object
neqsim.process.calibration.CalibrationResult
- All Implemented Interfaces:
Serializable
Represents the result of a calibration operation.
Contains the calibrated parameters, quality metrics, and status information.
- Version:
- 1.0
- Author:
- ESOL
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final Stringprivate final intprivate final doubleprivate final intprivate static final longprivate final boolean -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateCalibrationResult(boolean success, Map<String, Double> parameters, double rmse, int iterations, int samplesUsed, String errorMessage) Private constructor - use factory methods. -
Method Summary
Modifier and TypeMethodDescriptionstatic CalibrationResultCreates a failed calibration result.Alias for getParameters() for compatibility.Gets the error message if calibration failed.intGets the number of iterations used.Alias for getErrorMessage() for compatibility.Gets the calibrated parameters.doublegetRmse()Gets the RMSE achieved.intGets the number of samples used.booleanChecks if calibration was successful.booleanAlias for isSuccess() for compatibility.static CalibrationResultCreates a successful calibration result.toString()
-
Field Details
-
serialVersionUID
private static final long serialVersionUID- See Also:
-
success
private final boolean success -
parameters
-
rmse
private final double rmse -
iterations
private final int iterations -
samplesUsed
private final int samplesUsed -
errorMessage
-
-
Constructor Details
-
CalibrationResult
private CalibrationResult(boolean success, Map<String, Double> parameters, double rmse, int iterations, int samplesUsed, String errorMessage) Private constructor - use factory methods.- Parameters:
success- whether calibration was successfulparameters- the calibrated parametersrmse- the root mean square erroriterations- number of iterations usedsamplesUsed- number of samples usederrorMessage- error message if failed
-
-
Method Details
-
success
public static CalibrationResult success(Map<String, Double> parameters, double rmse, int iterations, int samplesUsed) Creates a successful calibration result.- Parameters:
parameters- the calibrated parametersrmse- the root mean square error achievediterations- number of iterations usedsamplesUsed- number of samples used- Returns:
- successful calibration result
-
failure
Creates a failed calibration result.- Parameters:
errorMessage- description of the failure- Returns:
- failed calibration result
-
isSuccess
public boolean isSuccess()Checks if calibration was successful.- Returns:
- true if successful
-
isSuccessful
public boolean isSuccessful()Alias for isSuccess() for compatibility.- Returns:
- true if successful
-
getParameters
-
getCalibratedParameters
-
getRmse
public double getRmse()Gets the RMSE achieved.- Returns:
- root mean square error
-
getIterations
public int getIterations()Gets the number of iterations used.- Returns:
- iteration count
-
getSamplesUsed
public int getSamplesUsed()Gets the number of samples used.- Returns:
- sample count
-
getErrorMessage
Gets the error message if calibration failed.- Returns:
- error message or null if successful
-
getMessage
Alias for getErrorMessage() for compatibility.- Returns:
- error message or null if successful
-
toString
-