Class CalibrationQuality
java.lang.Object
neqsim.process.calibration.CalibrationQuality
- All Implemented Interfaces:
Serializable
Represents calibration quality metrics for model validation.
Provides statistical measures to assess how well the calibrated model fits the measured data.
- Version:
- 1.0
- Author:
- ESOL
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final doubleprivate final doubleprivate final doubleprivate final doubleprivate final doubleprivate final intprivate static final longprivate final Instant -
Constructor Summary
ConstructorsConstructorDescriptionCalibrationQuality(Instant timestamp, double rmse, double mse, double mae, double r2, int sampleCount, double coverage) Constructor for CalibrationQuality. -
Method Summary
Modifier and TypeMethodDescriptiondoubleGets the operating range coverage percentage.doublegetMae()Gets the mean absolute error.doublegetMse()Gets the mean square error.doubleCalculates an overall quality score (0-100).doublegetR2()Gets the coefficient of determination (R-squared).Gets a qualitative rating of calibration quality.doublegetRmse()Gets the root mean square error.intGets the number of samples used in calibration.Gets the timestamp of quality assessment.booleanisAcceptable(double r2Threshold, double rmseThreshold) Determines if calibration quality is acceptable.toString()
-
Field Details
-
serialVersionUID
private static final long serialVersionUID- See Also:
-
timestamp
-
rmse
private final double rmse -
mse
private final double mse -
mae
private final double mae -
r2
private final double r2 -
sampleCount
private final int sampleCount -
coverage
private final double coverage
-
-
Constructor Details
-
CalibrationQuality
public CalibrationQuality(Instant timestamp, double rmse, double mse, double mae, double r2, int sampleCount, double coverage) Constructor for CalibrationQuality.- Parameters:
timestamp- the time of quality assessmentrmse- root mean square errormse- mean square errormae- mean absolute errorr2- coefficient of determinationsampleCount- number of samples usedcoverage- percentage of operating range covered
-
-
Method Details
-
getTimestamp
-
getRmse
public double getRmse()Gets the root mean square error.- Returns:
- RMSE value
-
getMse
public double getMse()Gets the mean square error.- Returns:
- MSE value
-
getMae
public double getMae()Gets the mean absolute error.- Returns:
- MAE value
-
getR2
public double getR2()Gets the coefficient of determination (R-squared).- Returns:
- R2 value (0 to 1, higher is better)
-
getSampleCount
public int getSampleCount()Gets the number of samples used in calibration.- Returns:
- sample count
-
getCoverage
public double getCoverage()Gets the operating range coverage percentage.- Returns:
- coverage (0 to 100)
-
getOverallScore
public double getOverallScore()Calculates an overall quality score (0-100).Score combines R2 (higher is better) and coverage metrics.
- Returns:
- overall score from 0 (poor) to 100 (excellent)
-
getRating
Gets a qualitative rating of calibration quality.- Returns:
- rating string: "Excellent", "Good", "Fair", or "Poor"
-
isAcceptable
public boolean isAcceptable(double r2Threshold, double rmseThreshold) Determines if calibration quality is acceptable.- Parameters:
r2Threshold- minimum acceptable R2 valuermseThreshold- maximum acceptable RMSE- Returns:
- true if quality meets thresholds
-
toString
-