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


Constructor Index

 o FilledPartition(int, double, double)

Method Index

 o clear()
Resets the partition to default settings.
 o getArea()
Return the area of the distribution.
 o getBinAt(double)
Returns the bin index corresponding to the given numerical value.
 o getBins()
Return an array containing the sizes of all the bins.
 o getEntries()
Return the number of entries.
 o getErrors()
Return an array containing the errors for all the bins.
 o getMax()
Return the maximum in the distribution.
 o getMean()
Return the mean of the distribution.
 o getMin()
Return the minimum in the distribution.
 o getMinusErrors()
Assumes symmetrical errors.
 o getNumberOfBins()
Return the number of bins.
 o getOverflow()
Return the overflow for the partition.
 o getPlusErrors()
Assumes symmetrical errors.
 o getRMS()
Return the RMS of the distribution.
 o getUnderflow()
Return the underflow for the partition.
 o hasAsymmetricErrorBars()
Returns false by default.
 o hasSimpleQuadraticErrorBars()
Returns false by default.
 o setArea(double)
 o setBin(int, double)
 o setBins(double[])
 o setError(int, double)
 o setErrors(double[])
 o setMax(double)
 o setMean(double)
 o setMin(double)
 o setMinusError(int, double)
 o setMinusErrors(double[])
 o setNumberOfBins(int)
 o setOverflow(double)
 o setPlusError(int, double)
 o setPlusErrors(double[])
 o setRMS(double)
 o setSnapshot(boolean)
Sets the snap shot mode of the partition.
 o setUnderflow(double)

Constructors

 o FilledPartition
 public FilledPartition(int bins,
                        double min,
                        double max)

Methods

 o setSnapshot
 public void setSnapshot(boolean useSnapShot)
Sets the snap shot mode of the partition.

Overrides:
setSnapshot in class Abstract1DPartition
 o getEntries
 public int getEntries()
Return the number of entries.

Overrides:
getEntries in class Abstract1DPartition
 o getUnderflow
 public double getUnderflow()
Return the underflow for the partition.

Overrides:
getUnderflow in class Abstract1DPartition
 o setUnderflow
 public void setUnderflow(double v)
 o getOverflow
 public double getOverflow()
Return the overflow for the partition.

Overrides:
getOverflow in class Abstract1DPartition
 o setOverflow
 public void setOverflow(double v)
 o getErrors
 public double[] getErrors()
Return an array containing the errors for all the bins.

Overrides:
getErrors in class Abstract1DPartition
 o setErrors
 public void setErrors(double v[])
 o getPlusErrors
 public double[] getPlusErrors()
Assumes symmetrical errors.

Overrides:
getPlusErrors in class Abstract1DPartition
 o setPlusErrors
 public void setPlusErrors(double v[])
 o getMinusErrors
 public double[] getMinusErrors()
Assumes symmetrical errors.

Overrides:
getMinusErrors in class Abstract1DPartition
 o setMinusErrors
 public void setMinusErrors(double v[])
 o getBins
 public double[] getBins()
Return an array containing the sizes of all the bins.

Overrides:
getBins in class Abstract1DPartition
 o setBins
 public void setBins(double v[])
 o getBinAt
 public int getBinAt(double x) throws NoSuchBinException
Returns the bin index corresponding to the given numerical value.

Overrides:
getBinAt in class Abstract1DPartition
 o setBin
 public void setBin(int bin,
                    double v) throws NoSuchBinException
 o setError
 public void setError(int bin,
                      double v) throws NoSuchBinException
 o setPlusError
 public void setPlusError(int bin,
                          double v) throws NoSuchBinException
 o setMinusError
 public void setMinusError(int bin,
                           double v) throws NoSuchBinException
 o getMin
 public double getMin()
Return the minimum in the distribution.

Overrides:
getMin in class Abstract1DPartition
 o setMin
 public void setMin(double v)
 o getMax
 public double getMax()
Return the maximum in the distribution.

Overrides:
getMax in class Abstract1DPartition
 o setMax
 public void setMax(double v)
 o getNumberOfBins
 public int getNumberOfBins()
Return the number of bins.

Overrides:
getNumberOfBins in class Abstract1DPartition
 o setNumberOfBins
 public void setNumberOfBins(int n)
 o clear
 public void clear()
Resets the partition to default settings.

Overrides:
clear in class Abstract1DPartition
 o getMean
 public double getMean()
Return the mean of the distribution.

Overrides:
getMean in class Abstract1DPartition
 o setMean
 public void setMean(double v)
 o getArea
 public double getArea()
Return the area of the distribution.

Overrides:
getArea in class Abstract1DPartition
 o setArea
 public void setArea(double v)
 o getRMS
 public double getRMS()
Return the RMS of the distribution.

Overrides:
getRMS in class Abstract1DPartition
 o setRMS
 public void setRMS(double v)
 o hasAsymmetricErrorBars
 public boolean hasAsymmetricErrorBars()
Returns false by default.

Overrides:
hasAsymmetricErrorBars in class Abstract1DPartition
 o hasSimpleQuadraticErrorBars
 public boolean hasSimpleQuadraticErrorBars()
Returns false by default.

Overrides:
hasSimpleQuadraticErrorBars in class Abstract1DPartition

All Packages  Class Hierarchy  This Package  Previous  Next  Index