- java.lang.Object
-
- net.finmath.plots.PlotProcess2D
-
-
Constructor Summary
Constructors Constructor Description 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.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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
void
saveAsJPG(File file, int width, int height)
void
saveAsPDF(File file, int width, int height)
void
saveAsSVG(File file, int width, int height)
Plot
setIsLegendVisible(Boolean isLegendVisible)
PlotProcess2D
setTitle(String title)
PlotProcess2D
setXAxisLabel(String xAxisLabel)
PlotProcess2D
setYAxisLabel(String yAxisLabel)
Plot
setZAxisLabel(String zAxisLabel)
void
show()
String
toString()
-
-
-
Constructor Detail
-
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 Detail
-
saveAsJPG
public void saveAsJPG(File file, int width, int height) throws IOException
- Specified by:
saveAsJPG
in interfacePlot
- Throws:
IOException
-
saveAsPDF
public void saveAsPDF(File file, int width, int height) throws IOException
- Specified by:
saveAsPDF
in interfacePlot
- Throws:
IOException
-
saveAsSVG
public void saveAsSVG(File file, int width, int height) throws IOException
- Specified by:
saveAsSVG
in interfacePlot
- Throws:
IOException
-
setTitle
public PlotProcess2D setTitle(String title)
-
setXAxisLabel
public PlotProcess2D setXAxisLabel(String xAxisLabel)
- Specified by:
setXAxisLabel
in interfacePlot
-
setYAxisLabel
public PlotProcess2D setYAxisLabel(String yAxisLabel)
- Specified by:
setYAxisLabel
in interfacePlot
-
setZAxisLabel
public Plot setZAxisLabel(String zAxisLabel)
- Specified by:
setZAxisLabel
in interfacePlot
-
setIsLegendVisible
public Plot setIsLegendVisible(Boolean isLegendVisible)
- Specified by:
setIsLegendVisible
in interfacePlot
- Parameters:
isLegendVisible
- the isLegendVisible to set
-
-