hep.analysis.partition
Class TwoDBinTypeAdapter

java.lang.Object
  |
  +--hep.analysis.partition.TwoDBinTypeAdapter
All Implemented Interfaces:
java.io.Serializable, SimpleTwoDDataSource, TwoDBinner

public class TwoDBinTypeAdapter
extends java.lang.Object
implements TwoDBinner, SimpleTwoDDataSource, java.io.Serializable

This class converts a 1D BinType to be useable with a 2d histogram

See Also:
Serialized Form

Method Summary
 void clear()
           
 void fill(int xBin, int yBin)
           
 void fillW(int xBin, int yBin, double value)
           
 double[][] getBins()
           
 double[][] getMinusErrors()
           
 int getNumberOfXBins()
           
 int getNumberOfYBins()
           
 double[][] getPlusErrors()
           
 boolean hasAsymmetricErrorBars()
           
 boolean hasSimpleQuadraticErrorBars()
           
 void setNumberOfBins(int xBins, int yBins)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

fill

public void fill(int xBin,
                 int yBin)
Specified by:
fill in interface TwoDBinner

fillW

public void fillW(int xBin,
                  int yBin,
                  double value)
Specified by:
fillW in interface TwoDBinner

clear

public void clear()
Specified by:
clear in interface TwoDBinner

setNumberOfBins

public void setNumberOfBins(int xBins,
                            int yBins)
Specified by:
setNumberOfBins in interface TwoDBinner

getNumberOfXBins

public int getNumberOfXBins()
Specified by:
getNumberOfXBins in interface TwoDBinner

getNumberOfYBins

public int getNumberOfYBins()
Specified by:
getNumberOfYBins in interface TwoDBinner

hasSimpleQuadraticErrorBars

public boolean hasSimpleQuadraticErrorBars()
Specified by:
hasSimpleQuadraticErrorBars in interface SimpleTwoDDataSource

hasAsymmetricErrorBars

public boolean hasAsymmetricErrorBars()
Specified by:
hasAsymmetricErrorBars in interface SimpleTwoDDataSource

getBins

public double[][] getBins()
Specified by:
getBins in interface SimpleTwoDDataSource

getPlusErrors

public double[][] getPlusErrors()
Specified by:
getPlusErrors in interface SimpleTwoDDataSource

getMinusErrors

public double[][] getMinusErrors()
Specified by:
getMinusErrors in interface SimpleTwoDDataSource