org.das2.dataset.RebinDescriptor

The RebinDescriptor will quickly look up which 1-D bin a Datum is in. This is not thread-safe, and must be used by only one thread during its lifetime.

RebinDescriptor( double start, double end, Units units, int nBin, boolean isLog )

RebinDescriptor( Datum start, Datum end, int nBin, boolean isLog )


FIRSTORLAST


MINUSONE


EXTRAPOLATE


binCenter

binCenter( int ibin, Units units ) → double

Parameters

ibin - an int
units - an Units

Returns:

double

[search for examples] [view on GitHub] [view on old javadoc] [view source]

binCenter( int ibin ) → Datum

binCenters

binCenters( ) → double[]

Returns:

double[][]

[search for examples] [view on GitHub] [view on old javadoc] [view source]


binCentersDV

binCentersDV( ) → DatumVector

Returns:

org.das2.datum.DatumVector

[search for examples] [view on GitHub] [view on old javadoc] [view source]


binStart

binStart( int ibin ) → Datum

Parameters

ibin - an int

Returns:

org.das2.datum.Datum

[search for examples] [view on GitHub] [view on old javadoc] [view source]

binStart( int ibin, Units units ) → double

binStarts

binStarts( ) → double[]

return the bin starts of all bins, in units of getUnits()

Returns:

the bin starts of all bins

[search for examples] [view on GitHub] [view on old javadoc] [view source]


binStop

binStop( int ibin ) → Datum

Parameters

ibin - an int

Returns:

org.das2.datum.Datum

[search for examples] [view on GitHub] [view on old javadoc] [view source]

binStop( int ibin, Units units ) → double

binStops

binStops( ) → double[]

return the bin stops of all bins, in units of getUnits()

Returns:

the bin stops of all bins

[search for examples] [view on GitHub] [view on old javadoc] [view source]


binWidth

binWidth( ) → double

Returns:

double

[search for examples] [view on GitHub] [view on old javadoc] [view source]


binWidthDatum

binWidthDatum( ) → Datum

Returns:

org.das2.datum.Datum

[search for examples] [view on GitHub] [view on old javadoc] [view source]


createSubsumingRebinDescriptor

createSubsumingRebinDescriptor( org.das2.dataset.RebinDescriptor ddY, Datum ymin, Datum ymax ) → RebinDescriptor

Parameters

ddY - a RebinDescriptor
ymin - a Datum
ymax - a Datum

Returns:

org.das2.dataset.RebinDescriptor

[search for examples] [view on GitHub] [view on old javadoc] [view source]


getUnits

getUnits( ) → Units

Returns:

org.das2.datum.Units

[search for examples] [view on GitHub] [view on old javadoc] [view source]


isLog

isLog( ) → boolean

Returns:

boolean

[search for examples] [view on GitHub] [view on old javadoc] [view source]


numberOfBins

numberOfBins( ) → int

Returns:

int

[search for examples] [view on GitHub] [view on old javadoc] [view source]


putDepDataSet

putDepDataSet( QDataSet ds, org.das2.qds.MutablePropertyDataSet result, org.das2.dataset.RebinDescriptor ddX, org.das2.dataset.RebinDescriptor ddY ) → void

taken from AverageTableRebinner

Parameters

ds - the original dataset
result - the rank 2 rebin target.
ddX - the descriptor, or null.
ddY - the descriptor, or null.

Returns:

void (returns nothing)

[search for examples] [view on GitHub] [view on old javadoc] [view source]


setOutOfBoundsAction

setOutOfBoundsAction( int action ) → void

Parameters

action - an int

Returns:

void (returns nothing)

[search for examples] [view on GitHub] [view on old javadoc] [view source]


toString

toString( ) → String

Returns:

java.lang.String

[search for examples] [view on GitHub] [view on old javadoc] [view source]


whichBin

whichBin( double x, Units units ) → int

Parameters

x - a double
units - an Units

Returns:

int

[search for examples] [view on GitHub] [view on old javadoc] [view source]