public final class RebinDescriptor
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected double |
end |
static int |
EXTRAPOLATE |
static int |
FIRSTORLAST |
protected boolean |
isLog |
static int |
MINUSONE |
protected int |
nBin |
protected double |
start |
Constructor and Description |
---|
RebinDescriptor(Datum start,
Datum end,
int nBin,
boolean isLog) |
RebinDescriptor(double start,
double end,
Units units,
int nBin,
boolean isLog) |
Modifier and Type | Method and Description |
---|---|
Datum |
binCenter(int ibin) |
double |
binCenter(int ibin,
Units units) |
double[] |
binCenters() |
DatumVector |
binCentersDV() |
Datum |
binStart(int ibin) |
double |
binStart(int ibin,
Units units)
return the smaller boundary of the bin.
|
double[] |
binStarts()
return the bin starts of all bins, in units of getUnits()
|
Datum |
binStop(int ibin) |
double |
binStop(int ibin,
Units units)
return the bigger boundary of the bin.
|
double[] |
binStops()
return the bin stops of all bins, in units of getUnits()
|
double |
binWidth() |
Datum |
binWidthDatum() |
static RebinDescriptor |
createSubsumingRebinDescriptor(RebinDescriptor ddY,
Datum ymin,
Datum ymax) |
Units |
getUnits() |
boolean |
isLog() |
int |
numberOfBins() |
static void |
putDepDataSet(QDataSet ds,
MutablePropertyDataSet result,
RebinDescriptor ddX,
RebinDescriptor ddY)
taken from AverageTableRebinner
|
void |
setOutOfBoundsAction(int action) |
java.lang.String |
toString() |
int |
whichBin(double x,
Units units) |
protected double start
protected double end
protected int nBin
protected boolean isLog
public static final int FIRSTORLAST
public static final int MINUSONE
public static final int EXTRAPOLATE
public RebinDescriptor(double start, double end, Units units, int nBin, boolean isLog)
public int numberOfBins()
public int whichBin(double x, Units units)
public DatumVector binCentersDV()
public double[] binCenters()
public double binCenter(int ibin, Units units)
public Datum binCenter(int ibin)
public Datum binStart(int ibin)
public double binStart(int ibin, Units units)
ibin
- the bin numberunits
- the units for the result.public Datum binStop(int ibin)
public double binStop(int ibin, Units units)
ibin
- the bin numberunits
- the units for the result.public double[] binStarts()
public double[] binStops()
public void setOutOfBoundsAction(int action)
public static RebinDescriptor createSubsumingRebinDescriptor(RebinDescriptor ddY, Datum ymin, Datum ymax)
public double binWidth()
public Datum binWidthDatum()
public boolean isLog()
public Units getUnits()
public static void putDepDataSet(QDataSet ds, MutablePropertyDataSet result, RebinDescriptor ddX, RebinDescriptor ddY)
ds
- the original datasetresult
- the rank 2 rebin target.ddX
- the descriptor, or null.ddY
- the descriptor, or null.public java.lang.String toString()
toString
in class java.lang.Object