Class SensitivityAnalysis.MonteCarloResult
java.lang.Object
neqsim.process.util.fielddevelopment.SensitivityAnalysis.MonteCarloResult
- All Implemented Interfaces:
Serializable
- Enclosing class:
SensitivityAnalysis
public static final class SensitivityAnalysis.MonteCarloResult
extends Object
implements Serializable
Complete Monte Carlo analysis result.
Contains all trial results and computed statistics including percentiles, mean, standard deviation, and sensitivity rankings.
- Version:
- 1.0
- Author:
- ESOL
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final intprivate final intprivate final doubleprivate final doubleprivate final doubleprivate final Stringprivate final Stringprivate final doubleprivate final doubleprivate final doubleprivate static final longprivate final doubleprivate final List<SensitivityAnalysis.TrialResult> -
Constructor Summary
ConstructorsConstructorDescriptionMonteCarloResult(List<SensitivityAnalysis.TrialResult> trials, Map<String, Double> tornadoSensitivities, String outputName, String outputUnit) Creates a Monte Carlo result. -
Method Summary
Modifier and TypeMethodDescriptionintGets the number of converged trials.intGets the number of feasible trials.double[][]getHistogramData(int numBins) Generates histogram bin data for plotting.doublegetMax()Gets the maximum value.doublegetMean()Gets the mean value.doublegetMin()Gets the minimum value.Gets parameters ranked by sensitivity.Gets the output metric name.Gets the output unit.doublegetP10()Gets the P10 value.doublegetP50()Gets the P50 value.doublegetP90()Gets the P90 value.doublegetPercentile(double percentile) Gets a specific percentile.private doublegetPercentileFromSorted(List<SensitivityAnalysis.TrialResult> sorted, double percentile) doubleGets the standard deviation.Gets tornado sensitivities.Gets all trial results.Exports trial data to CSV format.Generates statistics summary as Markdown.Generates tornado diagram as Markdown.
-
Field Details
-
serialVersionUID
private static final long serialVersionUID- See Also:
-
trials
-
p10
private final double p10 -
p50
private final double p50 -
p90
private final double p90 -
mean
private final double mean -
stdDev
private final double stdDev -
min
private final double min -
max
private final double max -
tornadoSensitivities
-
mostSensitiveParameters
-
feasibleCount
private final int feasibleCount -
convergedCount
private final int convergedCount -
outputName
-
outputUnit
-
-
Constructor Details
-
MonteCarloResult
public MonteCarloResult(List<SensitivityAnalysis.TrialResult> trials, Map<String, Double> tornadoSensitivities, String outputName, String outputUnit) Creates a Monte Carlo result.- Parameters:
trials- list of trial resultstornadoSensitivities- map of parameter name to sensitivityoutputName- name of output metricoutputUnit- unit of output metric
-
-
Method Details
-
getPercentileFromSorted
private double getPercentileFromSorted(List<SensitivityAnalysis.TrialResult> sorted, double percentile) -
getTrials
Gets all trial results.- Returns:
- unmodifiable list of trials
-
getP10
public double getP10()Gets the P10 value.- Returns:
- 10th percentile
-
getP50
public double getP50()Gets the P50 value.- Returns:
- 50th percentile (median)
-
getP90
public double getP90()Gets the P90 value.- Returns:
- 90th percentile
-
getMean
public double getMean()Gets the mean value.- Returns:
- arithmetic mean
-
getStdDev
public double getStdDev()Gets the standard deviation.- Returns:
- sample standard deviation
-
getMin
public double getMin()Gets the minimum value.- Returns:
- minimum
-
getMax
public double getMax()Gets the maximum value.- Returns:
- maximum
-
getPercentile
public double getPercentile(double percentile) Gets a specific percentile.- Parameters:
percentile- percentile (0-1)- Returns:
- value at percentile
-
getTornadoSensitivities
-
getMostSensitiveParameters
-
getFeasibleCount
public int getFeasibleCount()Gets the number of feasible trials.- Returns:
- feasible count
-
getConvergedCount
public int getConvergedCount()Gets the number of converged trials.- Returns:
- converged count
-
getOutputName
-
getOutputUnit
-
getHistogramData
public double[][] getHistogramData(int numBins) Generates histogram bin data for plotting.- Parameters:
numBins- number of bins- Returns:
- array of [binCenter, count] pairs
-
toTornadoMarkdown
Generates tornado diagram as Markdown.- Returns:
- Markdown formatted tornado table
-
toSummaryMarkdown
Generates statistics summary as Markdown.- Returns:
- Markdown formatted summary
-
toCSV
-