Class FiniteDifferencePlotData1D
java.lang.Object
net.finmath.finitedifference.utilities.FiniteDifferencePlotData1D
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 Summary
ConstructorsConstructorDescriptionFiniteDifferencePlotData1D(double xMin, double xMax, int numberOfPoints, DoubleUnaryOperator function, String title, String xAxisLabel, String yAxisLabel) Creates a one-dimensional plot descriptor. -
Method Summary
-
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
-
getTitle
-
getXAxisLabel
-
getYAxisLabel
-