java.lang.Object
net.finmath.plots.PlotProcess2D
- All Implemented Interfaces:
Plot
Small convenient wrapper for JFreeChart line plot of a stochastic process.
- Author:
- Christian Fries
-
Constructor Summary
ConstructorsConstructorDescriptionPlotProcess2D(net.finmath.time.TimeDiscretization timeDiscretization, DoubleFunction<net.finmath.stochastic.RandomVariable> process, int maxNumberOfPaths)
Plot the first (maxNumberOfPaths) paths of a time discrete stochastic process.PlotProcess2D(net.finmath.time.TimeDiscretization timeDiscretization, DoubleToRandomVariableFunction process, int maxNumberOfPaths)
Plot the first (maxNumberOfPaths) paths of a time discrete stochastic process.PlotProcess2D(net.finmath.time.TimeDiscretization timeDiscretization, Named<DoubleFunction<net.finmath.stochastic.RandomVariable>> process)
Plot the first 100 paths of a time discrete stochastic process.PlotProcess2D(net.finmath.time.TimeDiscretization timeDiscretization, Named<DoubleFunction<net.finmath.stochastic.RandomVariable>> process, int maxNumberOfPaths)
Plot the first (maxNumberOfPaths) paths of a time discrete stochastic process. -
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
setIsLegendVisible(Boolean isLegendVisible)
setXAxisLabel(String xAxisLabel)
setXAxisNumberFormat(NumberFormat xAxisNumberFormat)
setYAxisLabel(String yAxisLabel)
setYAxisNumberFormat(NumberFormat yAxisNumberFormat)
setZAxisLabel(String zAxisLabel)
void
show()
toString()
-
Constructor Details
-
PlotProcess2D
public PlotProcess2D(net.finmath.time.TimeDiscretization timeDiscretization, Named<DoubleFunction<net.finmath.stochastic.RandomVariable>> process, int maxNumberOfPaths)Plot the first (maxNumberOfPaths) paths of a time discrete stochastic process.- Parameters:
timeDiscretization
- The time discretization to be used for the x-axis.process
- The stochastic process to be plotted against the y-axsis (the first n paths are plotted).maxNumberOfPaths
- Maximum number of path (n) to be plotted.
-
PlotProcess2D
public PlotProcess2D(net.finmath.time.TimeDiscretization timeDiscretization, DoubleFunction<net.finmath.stochastic.RandomVariable> process, int maxNumberOfPaths)Plot the first (maxNumberOfPaths) paths of a time discrete stochastic process.- Parameters:
timeDiscretization
- The time discretization to be used for the x-axis.process
- The stochastic process to be plotted against the y-axsis (the first n paths are plotted).maxNumberOfPaths
- Maximum number of path (n) to be plotted.
-
PlotProcess2D
public PlotProcess2D(net.finmath.time.TimeDiscretization timeDiscretization, DoubleToRandomVariableFunction process, int maxNumberOfPaths)Plot the first (maxNumberOfPaths) paths of a time discrete stochastic process.- Parameters:
timeDiscretization
- The time discretization to be used for the x-axis.process
- The stochastic process to be plotted against the y-axsis (the first n paths are plotted).maxNumberOfPaths
- Maximum number of path (n) to be plotted.
-
PlotProcess2D
public PlotProcess2D(net.finmath.time.TimeDiscretization timeDiscretization, Named<DoubleFunction<net.finmath.stochastic.RandomVariable>> process)Plot the first 100 paths of a time discrete stochastic process.- Parameters:
timeDiscretization
- The time discretization to be used for the x-axis.process
- The stochastic process to be plotted against the y-axsis.
-
-
Method Details
-
setColors
-
show
public void show() -
close
public void close() -
saveAsJPG
- Specified by:
saveAsJPG
in interfacePlot
- Throws:
IOException
-
saveAsPNG
- Throws:
IOException
-
saveAsPDF
- Specified by:
saveAsPDF
in interfacePlot
- Throws:
IOException
-
saveAsSVG
- Specified by:
saveAsSVG
in interfacePlot
- Throws:
IOException
-
setTitle
-
setXAxisLabel
- Specified by:
setXAxisLabel
in interfacePlot
-
setYAxisLabel
- Specified by:
setYAxisLabel
in interfacePlot
-
setZAxisLabel
- Specified by:
setZAxisLabel
in interfacePlot
-
setXAxisNumberFormat
-
setYAxisNumberFormat
-
setIsLegendVisible
- Specified by:
setIsLegendVisible
in interfacePlot
- Parameters:
isLegendVisible
- the isLegendVisible to set
-
toString
-