hep.analysis.partition
Class SimpleDatePartition
java.lang.Object
|
+--java.util.Observable
|
+--hep.analysis.Partition
|
+--hep.analysis.partition.Abstract1DPartition
|
+--hep.analysis.partition.OneDDelegatingPartition
|
+--hep.analysis.partition.SimplePartition
|
+--hep.analysis.partition.SimpleDatePartition
- All Implemented Interfaces:
- OneDDataSource, OneDFillable, RangeChangeListener, java.io.Serializable, StatisticsProvider, TwoDFillable
- public class SimpleDatePartition
- extends SimplePartition
- See Also:
- Serialized Form
Method Summary |
void |
fill(java.util.Date x)
Invokes the fill(Date, double) method with
a weighting value of 1. |
void |
fill(double x,
double v)
|
void |
fill(int x,
double v)
|
void |
fillW(java.util.Date x,
double v)
Fills the associated histogram with a date value. |
int |
getAxisType()
Return the Axis type |
int |
getBinAt(java.util.Date x)
Returns the bin index corresponding to the given date value. |
int |
getBinAt(double x)
Returns the bin index corresponding to the given numerical value. |
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, fill, 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 |
SimpleDatePartition
public SimpleDatePartition()
SimpleDatePartition
public SimpleDatePartition(int bins)
SimpleDatePartition
public SimpleDatePartition(BinType type)
SimpleDatePartition
public SimpleDatePartition(java.util.Date min,
java.util.Date max)
SimpleDatePartition
public SimpleDatePartition(java.util.Date min,
java.util.Date max,
int bins)
SimpleDatePartition
public SimpleDatePartition(java.util.Date min,
java.util.Date max,
BinType type)
fill
public void fill(java.util.Date x)
- Description copied from class:
Abstract1DPartition
- Invokes the
fill(Date, 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(Date, double)
fillW
public void fillW(java.util.Date x,
double v)
- Description copied from class:
Abstract1DPartition
- Fills the associated histogram with a date value. Subclasses must
override this method with a partition-specific implementation
to prevent a PartitionFillException (i.e., override this method if your
subclass will support date binning).
- Overrides:
fillW
in class OneDDelegatingPartition
- Following copied from class:
hep.analysis.partition.Abstract1DPartition
- Parameters:
x
- the value to fillv
- a partition-specific value (normally some weighting value)- Throws:
PartitionFillException
- if not overridden- See Also:
PartitionFillException
fill
public void fill(double x,
double v)
- Overrides:
fill
in class Abstract1DPartition
fill
public void fill(int x,
double v)
getBinAt
public int getBinAt(java.util.Date x)
throws NoSuchBinException
- Description copied from class:
Abstract1DPartition
- Returns the bin index corresponding to the given date value.
Subclasses must override this method to avoid getting a
NoSuchBinException (i.e., override this method if your
subclass will support date 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
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