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 TypeMethodDescriptionvoidclose()setIsLegendVisible(Boolean isLegendVisible)setXAxisLabel(String xAxisLabel)setXAxisNumberFormat(NumberFormat xAxisNumberFormat)setYAxisLabel(String yAxisLabel)setYAxisNumberFormat(NumberFormat yAxisNumberFormat)setZAxisLabel(String zAxisLabel)voidshow()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:
saveAsJPGin interfacePlot- Throws:
IOException
-
saveAsPNG
- Throws:
IOException
-
saveAsPDF
- Specified by:
saveAsPDFin interfacePlot- Throws:
IOException
-
saveAsSVG
- Specified by:
saveAsSVGin interfacePlot- Throws:
IOException
-
setTitle
-
setXAxisLabel
- Specified by:
setXAxisLabelin interfacePlot
-
setYAxisLabel
- Specified by:
setYAxisLabelin interfacePlot
-
setZAxisLabel
- Specified by:
setZAxisLabelin interfacePlot
-
setXAxisNumberFormat
-
setYAxisNumberFormat
-
setIsLegendVisible
- Specified by:
setIsLegendVisiblein interfacePlot- Parameters:
isLegendVisible- the isLegendVisible to set
-
toString
-