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
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 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 |
Simple2DPartition
public Simple2DPartition()
Simple2DPartition
public Simple2DPartition(double xMin,
double xMax,
double yMin,
double yMax)
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 havemin
- the minimum of the partition rangemax
- 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