|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--heasarc.w3browse.plot.Histogram
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 |
public int bins
protected Column col
protected double[] range
protected long[] frequency
protected double[] yval
protected double[] xval
public double bin_width
Constructor Detail |
public Histogram(Column col, int nrows, int bin)
public Histogram()
Method Detail |
public double[] getX()
public double[] getY()
protected void setHistRanges()
protected void setFrequency(int nrows)
protected void getHistPoints()
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |