Class SensitivityAnalysis.SensitivityResult
java.lang.Object
neqsim.process.util.optimizer.SensitivityAnalysis.SensitivityResult
- All Implemented Interfaces:
Serializable
- Enclosing class:
SensitivityAnalysis
Results of a sensitivity analysis sweep.
- Version:
- 1.0
- Author:
- Even Solbraa
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionOutput values for each tracked variable.private final StringName of the varied parameter.private final double[]Values of the varied parameter.private static final longSerialization version.private final boolean[]Whether each step succeeded. -
Constructor Summary
ConstructorsConstructorDescriptionSensitivityResult(String parameterName, double[] parameterValues, Map<String, double[]> outputs, boolean[] succeeded) Creates a sensitivity result. -
Method Summary
Modifier and TypeMethodDescriptiondouble[]Gets the output values for a named output variable.Gets all output names.double[]Gets the parameter values used in the sweep.intgetSize()Gets the number of evaluation points.intGets the number of successful evaluations.toCSV()Converts results to CSV format.toJson()Converts results to a JSON string.
-
Field Details
-
serialVersionUID
private static final long serialVersionUIDSerialization version.- See Also:
-
parameterName
Name of the varied parameter. -
parameterValues
private final double[] parameterValuesValues of the varied parameter. -
outputs
-
succeeded
private final boolean[] succeededWhether each step succeeded.
-
-
Constructor Details
-
SensitivityResult
SensitivityResult(String parameterName, double[] parameterValues, Map<String, double[]> outputs, boolean[] succeeded) Creates a sensitivity result.- Parameters:
parameterName- name of varied parameterparameterValues- array of parameter valuesoutputs- map of output name to value arrayssucceeded- success flag per step
-
-
Method Details
-
getParameterValues
public double[] getParameterValues()Gets the parameter values used in the sweep.- Returns:
- array of parameter values
-
getOutput
Gets the output values for a named output variable.- Parameters:
outputName- name of the output- Returns:
- array of output values, or null if not found
-
getOutputNames
-
getSize
public int getSize()Gets the number of evaluation points.- Returns:
- number of steps
-
getSuccessCount
public int getSuccessCount()Gets the number of successful evaluations.- Returns:
- count of succeeded evaluations
-
toJson
-
toCSV
-