Package net.finmath.plots
Class PlotProcess2D
- java.lang.Object
-
- net.finmath.plots.PlotProcess2D
-
-
Constructor Summary
Constructors Constructor Description PlotProcess2D(TimeDiscretization timeDiscretization, DoubleFunction<RandomVariable> process, int maxNumberOfPaths)Plot the first (maxNumberOfPaths) paths of a time discrete stochastic process.PlotProcess2D(TimeDiscretization timeDiscretization, Named<DoubleFunction<RandomVariable>> process)Plot the first 100 paths of a time discrete stochastic process.PlotProcess2D(TimeDiscretization timeDiscretization, Named<DoubleFunction<RandomVariable>> process, int maxNumberOfPaths)Plot the first (maxNumberOfPaths) paths of a time discrete stochastic process.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidsaveAsJPG(File file, int width, int height)voidsaveAsPDF(File file, int width, int height)voidsaveAsSVG(File file, int width, int height)PlotsetIsLegendVisible(Boolean isLegendVisible)PlotProcess2DsetTitle(String title)PlotProcess2DsetXAxisLabel(String xAxisLabel)PlotProcess2DsetYAxisLabel(String yAxisLabel)PlotsetZAxisLabel(String zAxisLabel)voidshow()StringtoString()
-
-
-
Constructor Detail
-
PlotProcess2D
public PlotProcess2D(TimeDiscretization timeDiscretization, Named<DoubleFunction<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(TimeDiscretization timeDiscretization, DoubleFunction<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(TimeDiscretization timeDiscretization, Named<DoubleFunction<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 Detail
-
saveAsJPG
public void saveAsJPG(File file, int width, int height) throws IOException
- Specified by:
saveAsJPGin interfacePlot- Throws:
IOException
-
saveAsPDF
public void saveAsPDF(File file, int width, int height) throws IOException
- Specified by:
saveAsPDFin interfacePlot- Throws:
IOException
-
saveAsSVG
public void saveAsSVG(File file, int width, int height) throws IOException
- Specified by:
saveAsSVGin interfacePlot- Throws:
IOException
-
setTitle
public PlotProcess2D setTitle(String title)
-
setXAxisLabel
public PlotProcess2D setXAxisLabel(String xAxisLabel)
- Specified by:
setXAxisLabelin interfacePlot
-
setYAxisLabel
public PlotProcess2D setYAxisLabel(String yAxisLabel)
- Specified by:
setYAxisLabelin interfacePlot
-
setZAxisLabel
public Plot setZAxisLabel(String zAxisLabel)
- Specified by:
setZAxisLabelin interfacePlot
-
setIsLegendVisible
public Plot setIsLegendVisible(Boolean isLegendVisible)
- Specified by:
setIsLegendVisiblein interfacePlot- Parameters:
isLegendVisible- the isLegendVisible to set
-
-