Class PredictionResult.PredictedValue
java.lang.Object
neqsim.process.advisory.PredictionResult.PredictedValue
- All Implemented Interfaces:
Serializable
- Enclosing class:
PredictionResult
A predicted value with uncertainty bounds.
- Version:
- 1.0
- Author:
- ESOL
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final doubleprivate final doubleprivate final doubleprivate static final longprivate final doubleprivate final Stringprivate final double -
Constructor Summary
ConstructorsConstructorDescriptionPredictedValue(double mean, double lower95, double upper95, String unit, double confidence) Creates a predicted value with explicit bounds.PredictedValue(double mean, double standardDeviation, String unit) Creates a predicted value with uncertainty. -
Method Summary
Modifier and TypeMethodDescriptiondeterministic(double value, String unit) Creates a deterministic predicted value (no uncertainty).doubledoubledoublegetMean()doublegetUnit()doubletoString()
-
Field Details
-
serialVersionUID
private static final long serialVersionUID- See Also:
-
mean
private final double mean -
standardDeviation
private final double standardDeviation -
lower95
private final double lower95 -
upper95
private final double upper95 -
unit
-
confidence
private final double confidence
-
-
Constructor Details
-
PredictedValue
Creates a predicted value with uncertainty.- Parameters:
mean- expected valuestandardDeviation- uncertainty (standard deviation)unit- engineering unit
-
PredictedValue
Creates a predicted value with explicit bounds.- Parameters:
mean- expected valuelower95- lower 95% confidence boundupper95- upper 95% confidence boundunit- engineering unitconfidence- overall confidence (0-1)
-
-
Method Details
-
deterministic
Creates a deterministic predicted value (no uncertainty).- Parameters:
value- the predicted valueunit- engineering unit- Returns:
- a PredictedValue with zero uncertainty
-
getMean
public double getMean() -
getStandardDeviation
public double getStandardDeviation() -
getLower95
public double getLower95() -
getUpper95
public double getUpper95() -
getUnit
-
getConfidence
public double getConfidence() -
toString
-