Class FiniteDifferencePlotData1D

java.lang.Object
net.finmath.finitedifference.utilities.FiniteDifferencePlotData1D

public final class FiniteDifferencePlotData1D extends Object
Dependency-free plot descriptor for a one-dimensional finite-difference curve.

This class intentionally depends only on standard Java functional interfaces. Plotting libraries may consume the returned DoubleUnaryOperator without creating a compile-time dependency from the finite-difference module to a plotting module.

Author:
Alessandro Gnoatto
  • Constructor Details

    • FiniteDifferencePlotData1D

      public FiniteDifferencePlotData1D(double xMin, double xMax, int numberOfPoints, DoubleUnaryOperator function, String title, String xAxisLabel, String yAxisLabel)
      Creates a one-dimensional plot descriptor.
      Parameters:
      xMin - The lower x-axis bound.
      xMax - The upper x-axis bound.
      numberOfPoints - The number of plot points.
      function - The function to plot.
      title - The plot title.
      xAxisLabel - The x-axis label.
      yAxisLabel - The y-axis label.
  • Method Details

    • getXMin

      public double getXMin()
      Returns the value.
      Returns:
      The value.
    • getXMax

      public double getXMax()
      Returns the value.
      Returns:
      The value.
    • getNumberOfPoints

      public int getNumberOfPoints()
      Returns the value.
      Returns:
      The value.
    • getFunction

      public DoubleUnaryOperator getFunction()
      Returns the value.
      Returns:
      The value.
    • getTitle

      public String getTitle()
      Returns the value.
      Returns:
      The value.
    • getXAxisLabel

      public String getXAxisLabel()
      Returns the value.
      Returns:
      The value.
    • getYAxisLabel

      public String getYAxisLabel()
      Returns the value.
      Returns:
      The value.