Package org.moeaframework.analysis.plot
Class SensitivityPlotBuilder
java.lang.Object
org.moeaframework.analysis.plot.PlotBuilder<SensitivityPlotBuilder>
org.moeaframework.analysis.plot.SensitivityPlotBuilder
Displays sensitivity analysis results in a "spider web" plot, where:
- First-order effects are rendered as a solid circle / ellipse,
- Total-order effects are rendered as a ring around the first-order effects, and
- Second-order effects are rendered as lines joining the circles.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.moeaframework.analysis.plot.PlotBuilder
PlotBuilder.DisplayDriver
-
Field Summary
Fields inherited from class org.moeaframework.analysis.plot.PlotBuilder
paintHelper
-
Constructor Summary
ConstructorsConstructorDescriptionConstructs a new sensitivity plot builder with the given sensitivity analysis result. -
Method Summary
Modifier and TypeMethodDescriptionorg.jfree.chart.JFreeChart
build()
Builds and returns the configured plot.data
(SensitivityResult data) Sets the sensitivity analysis result.protected SensitivityPlotBuilder
Returns an instance of this builder cast to the concrete implementation typePlotBuilder
.labelOffset
(double labelOffset) Sets the offset of labels from their corresponding shapes.Sets the line fill color.sensitivityScalingFactor
(double sensitivityScaling) Sets the scaling factor applied to the sensitivity values.Sets the shape fill color.sizeScalingFactor
(double sizeScaling) Sets the scaling factor applied to the shape size / thickness.Methods inherited from class org.moeaframework.analysis.plot.PlotBuilder
applyStyle, applyStyle, barGraph, boxAndWhisker, build, buildPanel, defaultLegend, getAttribute, getDisplayDriver, getValueOrDefault, getValueOrDefault, hasAttribute, heatMap, legend, noLegend, paintHelper, save, save, save, sensitivity, setDisplayDriver, show, show, subtitle, theme, title, to2DArray, toArray, toArray, xy
-
Constructor Details
-
SensitivityPlotBuilder
public SensitivityPlotBuilder()Constructs a new sensitivity plot builder with the given sensitivity analysis result.
-
-
Method Details
-
getInstance
Description copied from class:PlotBuilder
Returns an instance of this builder cast to the concrete implementation typePlotBuilder
. This is used by any intermediate classes to returns the concrete implementation.- Specified by:
getInstance
in classPlotBuilder<SensitivityPlotBuilder>
- Returns:
- a reference to this builder instance
-
data
Sets the sensitivity analysis result.- Parameters:
data
- the sensitivity analysis result- Returns:
- a reference to this builder
-
shapeFill
Sets the shape fill color.- Parameters:
shapeFill
- the shape fill- Returns:
- a reference to this builder
-
lineFill
Sets the line fill color.- Parameters:
lineFill
- the line fill- Returns:
- a reference to this builder
-
sensitivityScalingFactor
Sets the scaling factor applied to the sensitivity values.- Parameters:
sensitivityScaling
- the scaling factor- Returns:
- a reference to this builder
-
sizeScalingFactor
Sets the scaling factor applied to the shape size / thickness.- Parameters:
sizeScaling
- the scaling factor- Returns:
- a reference to this builder
-
labelOffset
Sets the offset of labels from their corresponding shapes.- Parameters:
labelOffset
- the offset- Returns:
- a reference to this builder
-
build
public org.jfree.chart.JFreeChart build()Description copied from class:PlotBuilder
Builds and returns the configured plot.- Specified by:
build
in classPlotBuilder<SensitivityPlotBuilder>
- Returns:
- the resulting plot
-