hep.analysis.partition
Class Simple2DPartition

java.lang.Object
  |
  +--java.util.Observable
        |
        +--hep.analysis.Partition
              |
              +--hep.analysis.partition.Abstract2DPartition
                    |
                    +--hep.analysis.partition.Simple2DPartition
All Implemented Interfaces:
OneDFillable, java.io.Serializable, StatisticsProvider, TwoDDataSource, TwoDFillable
Direct Known Subclasses:
ScatterPlotPartition, Simple2DDatePartition

public class Simple2DPartition
extends Abstract2DPartition

See Also:
Serialized Form

Fields inherited from class hep.analysis.partition.Abstract2DPartition
m_dataChanged, m_dataFinalChangedNotificationSent, m_dataNotificationSent, m_rangeFinalChangedNotificationSent, m_xAxisChanged, m_xAxisNotificationSent, m_yAxisChanged, m_yAxisNotificationSent
 
Fields inherited from class hep.analysis.Partition
DATE, DELTATIME, DOUBLE, HORIZONTAL_AXIS, INTEGER, m_owner, STRING, VERTICAL_AXIS
 
Constructor Summary
Simple2DPartition()
           
Simple2DPartition(double xMin, double xMax, double yMin, double yMax)
           
 
Method Summary
 void clear()
          Resets the partition to default settings.
protected  TwoDStorer createStorer()
           
 void fill(double x, double y)
           
 void fillW(double x, double y, double weight)
           
 double[][] getBins()
           
 double[][] getMinusErrors()
           
 int getNumberOfXBins()
          Return the number of bins.
 int getNumberOfYBins()
           
 double[][] getPlusErrors()
           
 Statistics getStatistics()
           
 java.lang.String[] getXAxisLabels()
          Override to allow axis labels to be accessed.
 double getXMax()
           
 double getXMin()
           
 java.lang.String[] getYAxisLabels()
           
 double getYMax()
           
 double getYMin()
           
 boolean hasAsymmetricErrorBars()
          Returns false by default.
 boolean hasSimpleQuadraticErrorBars()
          Returns false by default.
 boolean isRebinnable()
          Returns false by default.
 Partition makeCopy()
          Make a copy of this partition, maintaining the partition class and initial state, but not the data stored in the partition.
 void setXBinning(int bins, double min, double max)
          Override to allow binning to be set.
 void setYBinning(int bins, double min, double max)
           
 
Methods inherited from class hep.analysis.partition.Abstract2DPartition
clearChanges, clearDataChanged, done, fill, fill, fill, fill, fill, fillW, fillW, fillW, fillW, fillW, getBin, getRangeChangeListener, getXAxisType, getYAxisType, notifyObservers, setBothRangesChanged, setDataAndRangeChangedNow, setDataChanged, setXRangeChanged, setYRangeChanged
 
Methods inherited from class hep.analysis.Partition
destroy, getStyle, setStyle
 
Methods inherited from class java.util.Observable
addObserver, clearChanged, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, setChanged
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Simple2DPartition

public Simple2DPartition()

Simple2DPartition

public Simple2DPartition(double xMin,
                         double xMax,
                         double yMin,
                         double yMax)
Method Detail

createStorer

protected TwoDStorer createStorer()

fill

public void fill(double x,
                 double y)
Overrides:
fill in class Abstract2DPartition

fillW

public void fillW(double x,
                  double y,
                  double weight)
Overrides:
fillW in class Abstract2DPartition

clear

public void clear()
Description copied from class: Abstract2DPartition
Resets the partition to default settings.
Overrides:
clear in class Abstract2DPartition

getXMin

public double getXMin()

getXMax

public double getXMax()

getYMin

public double getYMin()

getYMax

public double getYMax()

setXBinning

public void setXBinning(int bins,
                        double min,
                        double max)
Description copied from class: Abstract2DPartition
Override to allow binning to be set. Throws an UnsupportedPartitionMethodException by default.
Overrides:
setXBinning in class Abstract2DPartition
Following copied from class: hep.analysis.partition.Abstract2DPartition
Parameters:
bins - the number of bins to have
min - the minimum of the partition range
max - the maximum of the partition range
Throws:
UnsupportedPartitionMethodException - if not overridden.

setYBinning

public void setYBinning(int bins,
                        double min,
                        double max)
Overrides:
setYBinning in class Abstract2DPartition

getBins

public double[][] getBins()

getPlusErrors

public double[][] getPlusErrors()

getMinusErrors

public double[][] getMinusErrors()

getStatistics

public Statistics getStatistics()

getNumberOfXBins

public int getNumberOfXBins()
Description copied from class: Abstract2DPartition
Return the number of bins.
Overrides:
getNumberOfXBins in class Abstract2DPartition

getNumberOfYBins

public int getNumberOfYBins()
Overrides:
getNumberOfYBins in class Abstract2DPartition

isRebinnable

public boolean isRebinnable()
Description copied from class: Abstract2DPartition
Returns false by default. Override to have a rebinnable partition.
Overrides:
isRebinnable in class Abstract2DPartition

hasAsymmetricErrorBars

public boolean hasAsymmetricErrorBars()
Description copied from class: Abstract2DPartition
Returns false by default. Override to have asymmetric error bars.
Overrides:
hasAsymmetricErrorBars in class Abstract2DPartition

hasSimpleQuadraticErrorBars

public boolean hasSimpleQuadraticErrorBars()
Description copied from class: Abstract2DPartition
Returns false by default. Override to have simple quadratic error bars.
Overrides:
hasSimpleQuadraticErrorBars in class Abstract2DPartition

getXAxisLabels

public java.lang.String[] getXAxisLabels()
Description copied from class: Abstract2DPartition
Override to allow axis labels to be accessed. Throws an UnsupportedPartitionMethodException by default.
Overrides:
getXAxisLabels in class Abstract2DPartition
Following copied from class: hep.analysis.partition.Abstract2DPartition
Returns:
an array of axis labels

getYAxisLabels

public java.lang.String[] getYAxisLabels()
Overrides:
getYAxisLabels in class Abstract2DPartition

makeCopy

public Partition makeCopy()
Description copied from class: Partition
Make a copy of this partition, maintaining the partition class and initial state, but not the data stored in the partition.
Overrides:
makeCopy in class Partition