heasarc.w3browse.plot
Class Histogram

java.lang.Object
  |
  +--heasarc.w3browse.plot.Histogram
Direct Known Subclasses:
Cumulative

public class Histogram
extends java.lang.Object

This class creates histogram plots.


Field Summary
 double bin_width
          bin width
 int bins
          Number of bins in histogram
protected  Column col
          Column to plot
protected  long[] frequency
          Histogram frequency
protected  double[] range
          Histogram ranges
protected  double[] xval
          x and y coordinates for histogram plot
protected  double[] yval
          x and y coordinates for histogram plot
 
Constructor Summary
Histogram()
          Constructor creates empty Histogram object
Histogram(Column col, int nrows, int bin)
          Constructor for Histogram
 
Method Summary
protected  void getHistPoints()
          gets histogram points
 double[] getX()
          returns xaxis array
 double[] getY()
          returns yaxis array
protected  void setFrequency(int nrows)
          for each range, counts the number of data points
protected  void setHistRanges()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

bins

public int bins
Number of bins in histogram

col

protected Column col
Column to plot

range

protected double[] range
Histogram ranges

frequency

protected long[] frequency
Histogram frequency

yval

protected double[] yval
x and y coordinates for histogram plot

xval

protected double[] xval
x and y coordinates for histogram plot

bin_width

public double bin_width
bin width
Constructor Detail

Histogram

public Histogram(Column col,
                 int nrows,
                 int bin)
Constructor for Histogram

Histogram

public Histogram()
Constructor creates empty Histogram object
Method Detail

getX

public double[] getX()
returns xaxis array

getY

public double[] getY()
returns yaxis array

setHistRanges

protected void setHistRanges()

setFrequency

protected void setFrequency(int nrows)
for each range, counts the number of data points

getHistPoints

protected void getHistPoints()
gets histogram points