- 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()
PlotProcess2D
saveAsJPG(File file, int width, int height)
PlotProcess2D
saveAsPDF(File file, int width, int height)
PlotProcess2D
saveAsPNG(File file, int width, int height)
PlotProcess2D
saveAsSVG(File file, int width, int height)
PlotProcess2D
setColors(Color[] colors)
Plot
setIsLegendVisible(Boolean isLegendVisible)
PlotProcess2D
setTitle(String title)
PlotProcess2D
setXAxisLabel(String xAxisLabel)
PlotProcess2D
setXAxisNumberFormat(NumberFormat xAxisNumberFormat)
PlotProcess2D
setYAxisLabel(String yAxisLabel)
PlotProcess2D
setYAxisNumberFormat(NumberFormat yAxisNumberFormat)
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
-
setColors
public PlotProcess2D setColors(Color[] colors)
-
saveAsJPG
public PlotProcess2D saveAsJPG(File file, int width, int height) throws IOException
- Specified by:
saveAsJPG
in interfacePlot
- Throws:
IOException
-
saveAsPNG
public PlotProcess2D saveAsPNG(File file, int width, int height) throws IOException
- Throws:
IOException
-
saveAsPDF
public PlotProcess2D saveAsPDF(File file, int width, int height) throws IOException
- Specified by:
saveAsPDF
in interfacePlot
- Throws:
IOException
-
saveAsSVG
public PlotProcess2D 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
-
setXAxisNumberFormat
public PlotProcess2D setXAxisNumberFormat(NumberFormat xAxisNumberFormat)
-
setYAxisNumberFormat
public PlotProcess2D setYAxisNumberFormat(NumberFormat yAxisNumberFormat)
-
setIsLegendVisible
public Plot setIsLegendVisible(Boolean isLegendVisible)
- Specified by:
setIsLegendVisible
in interfacePlot
- Parameters:
isLegendVisible
- the isLegendVisible to set
-
-