All Packages Class Hierarchy This Package Previous Next Index
Class hep.analysis.SimplePartition
java.lang.Object
|
+----java.util.Observable
|
+----hep.analysis.Partition
|
+----hep.analysis.Abstract1DPartition
|
+----hep.analysis.SimplePartition
- public class SimplePartition
- extends Abstract1DPartition
- implements HasStatistics
-
SimplePartition()
-
-
SimplePartition(double, double)
-
-
calculateAxisLimits()
-
-
clear()
- Resets the partition to default settings.
-
fill(double)
- Invokes the
fill(double, double)
method with
a weighting value of 1.
-
fill(double, double)
- Fills the associated histogram with a numerical value.
-
getArea()
- Return the area of the distribution.
-
getBinAt(double)
- Returns the bin index corresponding to the given numerical value.
-
getBins()
- Return an array containing the sizes of all the bins.
-
getEntries()
- Return the number of entries.
-
getErrors()
- Return an array containing the errors for all the bins.
-
getMax()
- Return the maximum in the distribution.
-
getMean()
- Return the mean of the distribution.
-
getMin()
- Return the minimum in the distribution.
-
getNumberOfBins()
- Return the number of bins.
-
getOverflow()
- Return the overflow for the partition.
-
getRMS()
- Return the RMS of the distribution.
-
getStatistics()
-
-
getUnderflow()
- Return the underflow for the partition.
-
hasSimpleQuadraticErrorBars()
- Returns false by default.
-
isRebinnable()
- Returns false by default.
-
setBinning(int, double, double)
- Override to allow binning to be set.
-
setSnapshot(boolean)
- Designed for clear() to be called immediately afterwards if
useSnapshot
is true
.
SimplePartition
public SimplePartition()
SimplePartition
public SimplePartition(double min,
double max)
fill
public synchronized void fill(double x)
- Invokes the
fill(double, double)
method with
a weighting value of 1.
- Overrides:
- fill in class Abstract1DPartition
fill
public synchronized void fill(double x,
double v)
- Fills the associated histogram with a numerical value.
- Overrides:
- fill in class Abstract1DPartition
setBinning
public synchronized void setBinning(int bins,
double min,
double max)
- Override to allow binning to be set.
- Overrides:
- setBinning in class Abstract1DPartition
getStatistics
public synchronized Statistics getStatistics()
clear
public synchronized void clear()
- Resets the partition to default settings.
- Overrides:
- clear in class Abstract1DPartition
getBinAt
public synchronized int getBinAt(double x) throws NoSuchBinException
- Returns the bin index corresponding to the given numerical value.
- Overrides:
- getBinAt in class Abstract1DPartition
getBins
public synchronized double[] getBins()
- Return an array containing the sizes of all the bins.
- Overrides:
- getBins in class Abstract1DPartition
getErrors
protected synchronized double[] getErrors()
- Return an array containing the errors for all the bins.
- Overrides:
- getErrors in class Abstract1DPartition
getOverflow
public synchronized double getOverflow()
- Return the overflow for the partition.
- Overrides:
- getOverflow in class Abstract1DPartition
getUnderflow
public synchronized double getUnderflow()
- Return the underflow for the partition.
- Overrides:
- getUnderflow in class Abstract1DPartition
getEntries
public synchronized int getEntries()
- Return the number of entries.
- Overrides:
- getEntries in class Abstract1DPartition
getArea
public synchronized double getArea()
- Return the area of the distribution.
- Overrides:
- getArea in class Abstract1DPartition
getMean
public synchronized double getMean()
- Return the mean of the distribution.
- Overrides:
- getMean in class Abstract1DPartition
getRMS
public synchronized double getRMS()
- Return the RMS of the distribution.
- Overrides:
- getRMS in class Abstract1DPartition
getNumberOfBins
public synchronized int getNumberOfBins()
- Return the number of bins.
- Overrides:
- getNumberOfBins in class Abstract1DPartition
getMin
public synchronized double getMin()
- Return the minimum in the distribution.
- Overrides:
- getMin in class Abstract1DPartition
getMax
public synchronized double getMax()
- Return the maximum in the distribution.
- Overrides:
- getMax in class Abstract1DPartition
calculateAxisLimits
protected synchronized double[] calculateAxisLimits()
isRebinnable
public synchronized boolean isRebinnable()
- Returns false by default.
- Overrides:
- isRebinnable in class Abstract1DPartition
hasSimpleQuadraticErrorBars
public synchronized boolean hasSimpleQuadraticErrorBars()
- Returns false by default.
- Overrides:
- hasSimpleQuadraticErrorBars in class Abstract1DPartition
setSnapshot
public synchronized void setSnapshot(boolean useSnapshot)
- Designed for clear() to be called immediately afterwards if
useSnapshot
is true
.
- Overrides:
- setSnapshot in class Abstract1DPartition
All Packages Class Hierarchy This Package Previous Next Index