- java.lang.Object
-
- net.finmath.plots.PlotProcess2D
-
-
Constructor Summary
Constructors Constructor Description PlotProcess2D(net.finmath.time.TimeDiscretization timeDiscretization, java.util.function.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<java.util.function.DoubleFunction<net.finmath.stochastic.RandomVariable>> process)Plot the first 100 paths of a time discrete stochastic process.PlotProcess2D(net.finmath.time.TimeDiscretization timeDiscretization, Named<java.util.function.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 voidsaveAsJPG(java.io.File file, int width, int height)voidsaveAsPDF(java.io.File file, int width, int height)voidsaveAsSVG(java.io.File file, int width, int height)PlotsetIsLegendVisible(java.lang.Boolean isLegendVisible)PlotProcess2DsetTitle(java.lang.String title)PlotProcess2DsetXAxisLabel(java.lang.String xAxisLabel)PlotProcess2DsetYAxisLabel(java.lang.String yAxisLabel)PlotsetZAxisLabel(java.lang.String zAxisLabel)voidshow()java.lang.StringtoString()
-
-
-
Constructor Detail
-
PlotProcess2D
public PlotProcess2D(net.finmath.time.TimeDiscretization timeDiscretization, Named<java.util.function.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, java.util.function.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<java.util.function.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(java.io.File file, int width, int height) throws java.io.IOException
-
saveAsPDF
public void saveAsPDF(java.io.File file, int width, int height) throws java.io.IOException
-
saveAsSVG
public void saveAsSVG(java.io.File file, int width, int height) throws java.io.IOException
-
setTitle
public PlotProcess2D setTitle(java.lang.String title)
-
setXAxisLabel
public PlotProcess2D setXAxisLabel(java.lang.String xAxisLabel)
- Specified by:
setXAxisLabelin interfacePlot
-
setYAxisLabel
public PlotProcess2D setYAxisLabel(java.lang.String yAxisLabel)
- Specified by:
setYAxisLabelin interfacePlot
-
setZAxisLabel
public Plot setZAxisLabel(java.lang.String zAxisLabel)
- Specified by:
setZAxisLabelin interfacePlot
-
setIsLegendVisible
public Plot setIsLegendVisible(java.lang.Boolean isLegendVisible)
- Specified by:
setIsLegendVisiblein interfacePlot- Parameters:
isLegendVisible- the isLegendVisible to set
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-