Class Plots


  • public class Plots
    extends Object
    A factory for various plots.
    Author:
    Christian Fries
    • Constructor Detail

      • Plots

        public Plots()
    • 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)
      • 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)