All Packages Class Hierarchy This Package Previous Next Index
Class hep.analysis.FilledPartition
java.lang.Object
|
+----java.util.Observable
|
+----hep.analysis.Partition
|
+----hep.analysis.Abstract1DPartition
|
+----hep.analysis.FilledPartition
- public class FilledPartition
- extends Abstract1DPartition
This partition represents a histogram that has been prebinned.
It does not support any of the normal partition fill methods, but instead
allows the bins to be set using setBin method
-
FilledPartition(int, double, double)
-
-
clear()
- Resets the partition to default settings.
-
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.
-
getMinusErrors()
- Assumes symmetrical errors.
-
getNumberOfBins()
- Return the number of bins.
-
getOverflow()
- Return the overflow for the partition.
-
getPlusErrors()
- Assumes symmetrical errors.
-
getRMS()
- Return the RMS of the distribution.
-
getUnderflow()
- Return the underflow for the partition.
-
hasAsymmetricErrorBars()
- Returns false by default.
-
hasSimpleQuadraticErrorBars()
- Returns false by default.
-
setArea(double)
-
-
setBin(int, double)
-
-
setBins(double[])
-
-
setError(int, double)
-
-
setErrors(double[])
-
-
setMax(double)
-
-
setMean(double)
-
-
setMin(double)
-
-
setMinusError(int, double)
-
-
setMinusErrors(double[])
-
-
setNumberOfBins(int)
-
-
setOverflow(double)
-
-
setPlusError(int, double)
-
-
setPlusErrors(double[])
-
-
setRMS(double)
-
-
setSnapshot(boolean)
- Sets the snap shot mode of the partition.
-
setUnderflow(double)
-
FilledPartition
public FilledPartition(int bins,
double min,
double max)
setSnapshot
public void setSnapshot(boolean useSnapShot)
- Sets the snap shot mode of the partition.
- Overrides:
- setSnapshot in class Abstract1DPartition
getEntries
public int getEntries()
- Return the number of entries.
- Overrides:
- getEntries in class Abstract1DPartition
getUnderflow
public double getUnderflow()
- Return the underflow for the partition.
- Overrides:
- getUnderflow in class Abstract1DPartition
setUnderflow
public void setUnderflow(double v)
getOverflow
public double getOverflow()
- Return the overflow for the partition.
- Overrides:
- getOverflow in class Abstract1DPartition
setOverflow
public void setOverflow(double v)
getErrors
public double[] getErrors()
- Return an array containing the errors for all the bins.
- Overrides:
- getErrors in class Abstract1DPartition
setErrors
public void setErrors(double v[])
getPlusErrors
public double[] getPlusErrors()
- Assumes symmetrical errors.
- Overrides:
- getPlusErrors in class Abstract1DPartition
setPlusErrors
public void setPlusErrors(double v[])
getMinusErrors
public double[] getMinusErrors()
- Assumes symmetrical errors.
- Overrides:
- getMinusErrors in class Abstract1DPartition
setMinusErrors
public void setMinusErrors(double v[])
getBins
public double[] getBins()
- Return an array containing the sizes of all the bins.
- Overrides:
- getBins in class Abstract1DPartition
setBins
public void setBins(double v[])
getBinAt
public int getBinAt(double x) throws NoSuchBinException
- Returns the bin index corresponding to the given numerical value.
- Overrides:
- getBinAt in class Abstract1DPartition
setBin
public void setBin(int bin,
double v) throws NoSuchBinException
setError
public void setError(int bin,
double v) throws NoSuchBinException
setPlusError
public void setPlusError(int bin,
double v) throws NoSuchBinException
setMinusError
public void setMinusError(int bin,
double v) throws NoSuchBinException
getMin
public double getMin()
- Return the minimum in the distribution.
- Overrides:
- getMin in class Abstract1DPartition
setMin
public void setMin(double v)
getMax
public double getMax()
- Return the maximum in the distribution.
- Overrides:
- getMax in class Abstract1DPartition
setMax
public void setMax(double v)
getNumberOfBins
public int getNumberOfBins()
- Return the number of bins.
- Overrides:
- getNumberOfBins in class Abstract1DPartition
setNumberOfBins
public void setNumberOfBins(int n)
clear
public void clear()
- Resets the partition to default settings.
- Overrides:
- clear in class Abstract1DPartition
getMean
public double getMean()
- Return the mean of the distribution.
- Overrides:
- getMean in class Abstract1DPartition
setMean
public void setMean(double v)
getArea
public double getArea()
- Return the area of the distribution.
- Overrides:
- getArea in class Abstract1DPartition
setArea
public void setArea(double v)
getRMS
public double getRMS()
- Return the RMS of the distribution.
- Overrides:
- getRMS in class Abstract1DPartition
setRMS
public void setRMS(double v)
hasAsymmetricErrorBars
public boolean hasAsymmetricErrorBars()
- Returns false by default.
- Overrides:
- hasAsymmetricErrorBars in class Abstract1DPartition
hasSimpleQuadraticErrorBars
public boolean hasSimpleQuadraticErrorBars()
- Returns false by default.
- Overrides:
- hasSimpleQuadraticErrorBars in class Abstract1DPartition
All Packages Class Hierarchy This Package Previous Next Index