Class SensitivityPlotBuilder

java.lang.Object
org.moeaframework.analysis.plot.PlotBuilder<SensitivityPlotBuilder>
org.moeaframework.analysis.plot.SensitivityPlotBuilder

public class SensitivityPlotBuilder extends PlotBuilder<SensitivityPlotBuilder>
Displays sensitivity analysis results in a "spider web" plot, where:
  1. First-order effects are rendered as a solid circle / ellipse,
  2. Total-order effects are rendered as a ring around the first-order effects, and
  3. Second-order effects are rendered as lines joining the circles.
The scale of the circles / lines reflect the relative magnitude of the sensitivities.
  • Constructor Details

    • SensitivityPlotBuilder

      public SensitivityPlotBuilder()
      Constructs a new sensitivity plot builder with the given sensitivity analysis result.
  • Method Details

    • getInstance

      protected SensitivityPlotBuilder getInstance()
      Description copied from class: PlotBuilder
      Returns an instance of this builder cast to the concrete implementation type PlotBuilder. This is used by any intermediate classes to returns the concrete implementation.
      Specified by:
      getInstance in class PlotBuilder<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

      public SensitivityPlotBuilder shapeFill(Paint shapeFill)
      Sets the shape fill color.
      Parameters:
      shapeFill - the shape fill
      Returns:
      a reference to this builder
    • lineFill

      public SensitivityPlotBuilder lineFill(Paint lineFill)
      Sets the line fill color.
      Parameters:
      lineFill - the line fill
      Returns:
      a reference to this builder
    • sensitivityScalingFactor

      public SensitivityPlotBuilder sensitivityScalingFactor(double sensitivityScaling)
      Sets the scaling factor applied to the sensitivity values.
      Parameters:
      sensitivityScaling - the scaling factor
      Returns:
      a reference to this builder
    • sizeScalingFactor

      public SensitivityPlotBuilder sizeScalingFactor(double sizeScaling)
      Sets the scaling factor applied to the shape size / thickness.
      Parameters:
      sizeScaling - the scaling factor
      Returns:
      a reference to this builder
    • labelOffset

      public SensitivityPlotBuilder labelOffset(double 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 class PlotBuilder<SensitivityPlotBuilder>
      Returns:
      the resulting plot