Documentation of 'smile.plot.StaircasePlot' Java class
StaircasePlot
smile.plot

Class StaircasePlot



  • public class StaircasePlot
    extends Plot
    Staircase plot is a special case of line which is most useful to display empirical distribution.
    • Constructor Summary

      Constructors 
      Constructor and Description
      StaircasePlot(double[][] data)
      Constructor.
      StaircasePlot(double[][] data, java.awt.Color color)
      Constructor.
    • Constructor Detail

      • StaircasePlot

        public StaircasePlot(double[][] data)
        Constructor.
      • StaircasePlot

        public StaircasePlot(double[][] data,
                             java.awt.Color color)
        Constructor.
    • Method Detail

      • paint

        public void paint(Graphics g)
        Description copied from class: Shape
        Draw the component with given graphics object.
        Specified by:
        paint in class Shape
      • plot

        public static PlotCanvas plot(double[]... data)
        Create a plot canvas with the staircase line plot of given data.
        Parameters:
        data - a n x 2 or n x 3 matrix that describes coordinates of points.
      • plot

        public static PlotCanvas plot(java.lang.String id,
                                      double[]... data)
        Create a plot canvas with the staircase line plot of given data.
        Parameters:
        id - the id of the plot.
        data - a n x 2 or n x 3 matrix that describes coordinates of points.

DataMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.