org.das2.dataset
Class AverageNoInterpolateTableRebinner

java.lang.Object
  extended by org.das2.dataset.AverageNoInterpolateTableRebinner
All Implemented Interfaces:
DataSetRebinner

public class AverageNoInterpolateTableRebinner
extends java.lang.Object
implements DataSetRebinner

This rebinner will bin average elements that fall on the same bin, and will enlarge cells that cover multiple bins. This is done efficiently, and also does not introduce half-pixel aliasing because input cells covering multiple output cells are averaged weighting by overlap.


Constructor Summary
AverageNoInterpolateTableRebinner()
           
 
Method Summary
 boolean isNearestNeighbor()
           
 DataSet rebin(DataSet ds, RebinDescriptor ddx, RebinDescriptor ddy)
           
 void setNearestNeighbor(boolean v)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AverageNoInterpolateTableRebinner

public AverageNoInterpolateTableRebinner()
Method Detail

rebin

public DataSet rebin(DataSet ds,
                     RebinDescriptor ddx,
                     RebinDescriptor ddy)
              throws java.lang.IllegalArgumentException,
                     DasException
Specified by:
rebin in interface DataSetRebinner
Throws:
java.lang.IllegalArgumentException
DasException

isNearestNeighbor

public boolean isNearestNeighbor()

setNearestNeighbor

public void setNearestNeighbor(boolean v)