hep.analysis
Class Histogram1D

java.lang.Object
  |
  +--hep.analysis.AbstractNamedObject
        |
        +--hep.analysis.Histogram
              |
              +--hep.analysis.Histogram1D
All Implemented Interfaces:
NamedObject, java.io.Serializable

public class Histogram1D
extends Histogram

A subclass of Histogram which provides extra convenience methods for accessing information about the filled histogram.

See Also:
Serialized Form

Inner classes inherited from class hep.analysis.NamedObject
NamedObject.RenameException
 
Fields inherited from class hep.analysis.Histogram
m_partition
 
Fields inherited from class hep.analysis.AbstractNamedObject
m_parent
 
Constructor Summary
Histogram1D(java.lang.String name)
           
Histogram1D(java.lang.String name, HistogramFolder f)
           
Histogram1D(java.lang.String name, HistogramFolder f, Partition p)
           
Histogram1D(java.lang.String name, Partition p)
           
 
Method Summary
 double getArea()
          Get the area under the histogram
 double getBin(int bin)
          Invokes the corresponding method on the current partition.
 int getBinAt(java.util.Date x)
          Invokes the corresponding method on the current partition.
 int getBinAt(double x)
          Invokes the corresponding method on the current partition.
 int getBinAt(int x)
          Invokes the corresponding method on the current partition.
 int getBinAt(java.lang.String x)
          Invokes the corresponding method on the current partition.
 double getMean()
          Get the mean of the contents of this histogram
 double getMinusError(int bin)
          Invokes the corresponding method on the current partition.
 int getNumberOfBins()
           
 double getOverflow()
          Get the (weighted) overflow.
 double getPlusError(int bin)
          Invokes the corresponding method on the current partition.
 double getRMS()
          Get the RMS of the contents of this histogram
 double getUnderflow()
          Get the (weighted) underflow
 
Methods inherited from class hep.analysis.Histogram
clear, fill, fill, fill, fill, fill, fill, fillW, fillW, fillW, fillW, fillW, fillW, find, find, getDefaultParent, getEntries, getPartition, getStyle, isClearOnRewind, partitionDestroyedNotify, setClearOnRewind, setPartition, setStyle, show, toString
 
Methods inherited from class hep.analysis.AbstractNamedObject
delete, getFolder, getName, rename
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Histogram1D

public Histogram1D(java.lang.String name)

Histogram1D

public Histogram1D(java.lang.String name,
                   HistogramFolder f)

Histogram1D

public Histogram1D(java.lang.String name,
                   Partition p)

Histogram1D

public Histogram1D(java.lang.String name,
                   HistogramFolder f,
                   Partition p)
Method Detail

getNumberOfBins

public int getNumberOfBins()

getBinAt

public int getBinAt(double x)
             throws NoSuchBinException
Invokes the corresponding method on the current partition.
See Also:
Histogram.getPartition(), Abstract1DPartition.getBinAt(double)

getBinAt

public int getBinAt(int x)
             throws NoSuchBinException
Invokes the corresponding method on the current partition.
See Also:
Histogram.getPartition(), Abstract1DPartition.getBinAt(int)

getBinAt

public int getBinAt(java.lang.String x)
             throws NoSuchBinException
Invokes the corresponding method on the current partition.
See Also:
Histogram.getPartition(), Abstract1DPartition.getBinAt(String)

getBinAt

public int getBinAt(java.util.Date x)
             throws NoSuchBinException
Invokes the corresponding method on the current partition.
See Also:
Histogram.getPartition(), Abstract1DPartition.getBinAt(Date)

getBin

public double getBin(int bin)
              throws NoSuchBinException
Invokes the corresponding method on the current partition.
See Also:
Histogram.getPartition(), Abstract1DPartition.getBin(int)

getPlusError

public double getPlusError(int bin)
Invokes the corresponding method on the current partition.
See Also:
Histogram.getPartition(), Abstract1DPartition.getPlusError(int)

getMinusError

public double getMinusError(int bin)
Invokes the corresponding method on the current partition.
See Also:
Histogram.getPartition(), Abstract1DPartition.getMinusError(int)

getOverflow

public double getOverflow()
Get the (weighted) overflow.

getUnderflow

public double getUnderflow()
Get the (weighted) underflow

getArea

public double getArea()
Get the area under the histogram

getMean

public double getMean()
Get the mean of the contents of this histogram

getRMS

public double getRMS()
Get the RMS of the contents of this histogram