hep.analysis.partition
Class SimpleIntPartition
java.lang.Object
|
+--java.util.Observable
|
+--hep.analysis.Partition
|
+--hep.analysis.partition.Abstract1DPartition
|
+--hep.analysis.partition.OneDDelegatingPartition
|
+--hep.analysis.partition.SimplePartition
|
+--hep.analysis.partition.SimpleIntPartition
- All Implemented Interfaces:
- OneDDataSource, OneDFillable, RangeChangeListener, java.io.Serializable, StatisticsProvider, TwoDFillable
- public class SimpleIntPartition
- extends SimplePartition
A partition that can only be filled with integer values.
- See Also:
- Serialized Form
Method Summary |
void |
fill(double x)
Invokes the fill(double, double) method with
a weighting value of 1. |
void |
fill(double x,
double v)
|
void |
fill(int x)
Invokes the fill(int, double) method with
a weighting value of 1. |
void |
fill(int x,
double v)
|
int |
getAxisType()
Return the Axis type |
int |
getBinAt(double x)
Returns the bin index corresponding to the given numerical value. |
int |
getBinAt(int x)
Converts the given int parameter to type
double and invokes the method
getBinAt(double) . |
Partition |
makeCopy()
Make a copy of this partition, maintaining the partition class and
initial state, but not the data stored in the partition. |
Methods inherited from class hep.analysis.partition.OneDDelegatingPartition |
clear, fill, fill, fillW, fillW, fillW, fillW, getAxisLabels, getBins, getMinusErrors, getPlusErrors, hasAsymmetricErrorBars, hasSimpleQuadraticErrorBars, setBinInfo, setDataSource, setFillable, setStatisticsProvider |
Methods inherited from class hep.analysis.partition.Abstract1DPartition |
clearDataChanged, clearRangeChanged, done, fill, fillW, fillW, getBin, getBinAt, getBinAt, getError, getMinusError, getPlusError, notifyObservers, rangeChanged, setDataAndRangeChanged, setDataAndRangeChangedNow, setDataChanged, setRangeChanged |
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 |
SimpleIntPartition
public SimpleIntPartition()
SimpleIntPartition
public SimpleIntPartition(int bins)
SimpleIntPartition
public SimpleIntPartition(BinType type)
SimpleIntPartition
public SimpleIntPartition(int min,
int max)
SimpleIntPartition
public SimpleIntPartition(int min,
int max,
int bins)
SimpleIntPartition
public SimpleIntPartition(int min,
int max,
BinType type)
fill
public void fill(int x)
- Description copied from class:
Abstract1DPartition
- Invokes the
fill(int, double)
method with
a weighting value of 1.
- Overrides:
fill
in class OneDDelegatingPartition
- Following copied from class:
hep.analysis.partition.Abstract1DPartition
- Parameters:
x
- the value to fill- See Also:
Abstract1DPartition.fillW(int, double)
fill
public void fill(int x,
double v)
fill
public void fill(double x)
- Description copied from class:
Abstract1DPartition
- Invokes the
fill(double, double)
method with
a weighting value of 1.
- Overrides:
fill
in class OneDDelegatingPartition
- Following copied from class:
hep.analysis.partition.Abstract1DPartition
- Parameters:
x
- the value to fill- See Also:
Abstract1DPartition.fillW(double, double)
fill
public void fill(double x,
double v)
- Overrides:
fill
in class Abstract1DPartition
getBinAt
public int getBinAt(int x)
throws NoSuchBinException
- Description copied from class:
Abstract1DPartition
- Converts the given
int
parameter to type
double
and invokes the method
getBinAt(double)
.
- Overrides:
getBinAt
in class Abstract1DPartition
- Following copied from class:
hep.analysis.partition.Abstract1DPartition
- Throws:
NoSuchBinException
- if thrown from getBinAt(double)
- See Also:
Abstract1DPartition.getBinAt(double)
getBinAt
public int getBinAt(double x)
throws NoSuchBinException
- Description copied from class:
Abstract1DPartition
- Returns the bin index corresponding to the given numerical value.
Subclasses must override this method to avoid getting a
NoSuchBinException (i.e., override this method if your
subclass will support numerical binning).
- Overrides:
getBinAt
in class Abstract1DPartition
- Following copied from class:
hep.analysis.partition.Abstract1DPartition
- Parameters:
x
- the value to map to a bin- Returns:
- the bin index for the given parameter
x
- Throws:
NoSuchBinException
- if not overridden
getAxisType
public int getAxisType()
- Description copied from class:
Abstract1DPartition
- Return the Axis type
- Overrides:
getAxisType
in class SimplePartition
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 SimplePartition