|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
This is the interface that must be implemented by any data source for a 1D histogram. Despite the name, the data does not actually have to be rebinnable, the isRebinnable() method should return false if the data cannot be rebinned.
Rebinnable2DHistogramData
Fields inherited from interface jas.hist.DataSource |
DATE, DELTATIME, DOUBLE, INTEGER, STRING |
Method Summary | |
java.lang.String[] |
getAxisLabels()
Returns the axis labels. |
int |
getAxisType()
Returns one of DOUBLE,INTEGER,STRING,DATE or DELTATIME |
int |
getBins()
Returns the (suggested) number of bins to use |
double |
getMax()
Returns the (suggested) maximum value for the X axis |
double |
getMin()
Returns the (suggested) minimum value for the X axis |
boolean |
isRebinnable()
Returns true if the data source is capable of recalculating the bin contents, or false of the interface is not-capable of recalculating the bin contents. |
double[][] |
rebin(int bins,
double min,
double max,
boolean wantErrors,
boolean hurry)
Called to request the binned data be returned. |
Methods inherited from interface jas.hist.DataSource |
getTitle |
Method Detail |
public double[][] rebin(int bins, double min, double max, boolean wantErrors, boolean hurry)
The routine returns a two dimensional array where the first dimension has the following meaning:
bin
- The number of bins requestedmin
- The min of the range over which to binmax
- The max of the range over which to binwantErrors
- If false indicates that the errors are not required and need not be calculated (most implementations will ignore this parameter)hurry
- If true indicates the results should be provided as fast as possible, even if some approximation is needed (most implementations will ignore this parameter)public double getMin()
public double getMax()
public int getBins()
public boolean isRebinnable()
public int getAxisType()
public java.lang.String[] getAxisLabels()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |