- java.lang.Object
-
- net.finmath.plots.Plots
-
public class Plots extends Object
A factory for various plots.- Author:
- Christian Fries
-
-
Constructor Summary
Constructors Constructor Description Plots()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Plot2D
createPlotOfHistogram(net.finmath.stochastic.RandomVariable randomVariable, int numberOfPoints, double standardDeviations)
static Plot
createPlotOfHistogramBehindValues(net.finmath.stochastic.RandomVariable randomVariableX, net.finmath.stochastic.RandomVariable randomVariableY, int numberOfPoints, double standardDeviations)
Create a histogram behind a value scatter plot.static Plot
createPlotOfHistogramBehindValues(net.finmath.stochastic.RandomVariable randomVariableX, net.finmath.stochastic.RandomVariable randomVariableY, int numberOfPoints, double standardDeviations, Double xmin, Double xmax)
static Plot2D
createPlotScatter(double[] xValues, double[] yValues, double xmin, double xmax, int dotSize)
static Plot2D
createPlotScatter(List<Double> x, List<Double> y, double xmin, double xmax, int dotSize)
static Plot2D
createPlotScatter(net.finmath.stochastic.RandomVariable x, net.finmath.stochastic.RandomVariable y, double xmin, double xmax)
static Plot2D
createPlotScatter(net.finmath.stochastic.RandomVariable x, net.finmath.stochastic.RandomVariable y, double xmin, double xmax, int dotSize)
static Plot2D
updatePlotOfHistogram(Plot2D histogram, net.finmath.stochastic.RandomVariable randomVariable, int numberOfPoints, double standardDeviations)
static Plot2D
updatePlotScatter(Plot2D plot, double[] xValues, double[] yValues, double xmin, double xmax, int dotSize)
static Plot2D
updatePlotScatter(Plot2D plot, List<Double> x, List<Double> y, double xmin, double xmax, int dotSize)
-
-
-
Method Detail
-
createPlotOfHistogramBehindValues
public static Plot createPlotOfHistogramBehindValues(net.finmath.stochastic.RandomVariable randomVariableX, net.finmath.stochastic.RandomVariable randomVariableY, int numberOfPoints, double standardDeviations)
Create a histogram behind a value scatter plot.- Parameters:
randomVariableX
- The random variable for the independent.randomVariableY
- The random variable for the dependent.numberOfPoints
- The number of bins to be used for the histogram.standardDeviations
- The standard deviations to be covered by the independent.- Returns:
- The plot.
-
createPlotOfHistogramBehindValues
public static Plot createPlotOfHistogramBehindValues(net.finmath.stochastic.RandomVariable randomVariableX, net.finmath.stochastic.RandomVariable randomVariableY, int numberOfPoints, double standardDeviations, Double xmin, Double xmax)
-
createPlotOfHistogram
public static Plot2D createPlotOfHistogram(net.finmath.stochastic.RandomVariable randomVariable, int numberOfPoints, double standardDeviations)
-
updatePlotOfHistogram
public static Plot2D updatePlotOfHistogram(Plot2D histogram, net.finmath.stochastic.RandomVariable randomVariable, int numberOfPoints, double standardDeviations)
-
createPlotScatter
public static Plot2D createPlotScatter(double[] xValues, double[] yValues, double xmin, double xmax, int dotSize)
-
createPlotScatter
public static Plot2D createPlotScatter(List<Double> x, List<Double> y, double xmin, double xmax, int dotSize)
-
updatePlotScatter
public static Plot2D updatePlotScatter(Plot2D plot, double[] xValues, double[] yValues, double xmin, double xmax, int dotSize)
-
updatePlotScatter
public static Plot2D updatePlotScatter(Plot2D plot, List<Double> x, List<Double> y, double xmin, double xmax, int dotSize)
-
createPlotScatter
public static Plot2D createPlotScatter(net.finmath.stochastic.RandomVariable x, net.finmath.stochastic.RandomVariable y, double xmin, double xmax, int dotSize)
-
createPlotScatter
public static Plot2D createPlotScatter(net.finmath.stochastic.RandomVariable x, net.finmath.stochastic.RandomVariable y, double xmin, double xmax)
-
-