Class Histogram3D


public class Histogram3D extends Plot
A histogram is a graphical display of tabulated frequencies, shown as bars. It shows what proportion of cases fall into each of several categories: it is a form of data binning. The categories are usually specified as non-overlapping intervals of some variable. The categories (bars) must be adjacent. The intervals (or bands, or bins) are generally of the same size, and are most easily interpreted if they are.
  • Constructor Details

    • Histogram3D

      public Histogram3D(double[][] data, int xbins, int ybins, boolean prob, Color[] palette)
      Constructor.
      Parameters:
      data - a sample set.
      xbins - the number of bins on x-axis.
      ybins - the number of bins on y-axis.
      prob - if true, the z-axis will be in the probability scale. Otherwise, z-axis will be in the frequency scale.
      palette - the color palette.
  • Method Details

    • getLowerBound

      public double[] getLowerBound()
      Description copied from class: Plot
      Returns the lower bound of data.
      Specified by:
      getLowerBound in class Plot
    • getUpperBound

      public double[] getUpperBound()
      Description copied from class: Plot
      Returns the upper bound of data.
      Specified by:
      getUpperBound in class Plot
    • paint

      public void paint(Graphics g)
      Description copied from class: Shape
      Draws the shape.
      Specified by:
      paint in class Shape
    • of

      public static Histogram3D of(double[][] data)
      Creates a 3D histogram plot.
      Parameters:
      data - a sample set.
    • of

      public static Histogram3D of(double[][] data, int nbins, Color[] palette)
      Creates a 3D histogram plot.
      Parameters:
      data - a sample set.
      nbins - the number of bins.
      palette - the color palette.
    • of

      public static Histogram3D of(double[][] data, int nbins, boolean prob)
      Creates a 3D histogram plot.
      Parameters:
      data - a sample set.
      nbins - the number of bins.
      prob - if true, the z-axis will be in the probability scale. Otherwise, z-axis will be in the frequency scale.
    • of

      public static Histogram3D of(double[][] data, int nbins, boolean prob, Color[] palette)
      Creates a 3D histogram plot.
      Parameters:
      data - a sample set.
      nbins - the number of bins.
      prob - if true, the z-axis will be in the probability scale. Otherwise, z-axis will be in the frequency scale.
      palette - the color palette.