Class HistogramDataset

All Implemented Interfaces:
Data, Drawable, LogMeasurable, Measurable

public class HistogramDataset extends Dataset
HistogramDataset creates a histogram of appended data points.
Version:
1.0
Author:
Wolfgang Christian
  • Constructor Details

    • HistogramDataset

      public HistogramDataset(double binMin, double binMax, double binSize)
      Constructor HistogramDataset
      Parameters:
      binMin -
      binMax -
      binSize -
    • HistogramDataset

      protected HistogramDataset()
      Constructs a HistogramDataset for values from 0 through 100.
  • Method Details

    • append

      public void append(double x, double y)
      Appends an (x,y) datum to the Stipchart.
      Overrides:
      append in class Dataset
      Parameters:
      x -
      y -
    • append

      public void append(double[] xpoints, double[] ypoints)
      Appends (x,y) data-arrays to the Stipchart.
      Overrides:
      append in class Dataset
      Parameters:
      xpoints -
      ypoints -
    • getXMin

      public double getXMin()
      Gets the x world coordinate for the left hand side of the panel.
      Specified by:
      getXMin in interface Measurable
      Overrides:
      getXMin in class Dataset
      Returns:
      xmin
    • getXMax

      public double getXMax()
      Gets the x world coordinate for the right hand side of the panel.
      Specified by:
      getXMax in interface Measurable
      Overrides:
      getXMax in class Dataset
      Returns:
      xmax
    • setBinWidth

      public void setBinWidth(double binMin, double binMax, double binSize)
    • clear

      public void clear()
      Clears data from the histogram.
      Overrides:
      clear in class Dataset
    • getLoader

      public static XML.ObjectLoader getLoader()
      Returns the XML.ObjectLoader for this class.
      Returns:
      the object loader