All Packages Class Hierarchy This Package Previous Next Index
Class hep.analysis.Histogram
java.lang.Object
|
+----hep.analysis.Histogram
- public class Histogram
- extends Object
Class Histogram is used by user analysis programs to create and fill a wide
variety of histograms. Histograms must each have unique names assigned to
them at creation time.
-
Histogram(String)
- Create a new histogram.
-
Histogram(String, HistogramFolder)
-
-
fill(Date)
-
-
fill(Date, double)
-
-
fill(double)
-
Fill a histogram with a single double
-
fill(double, double)
-
Fill a histogram with a single double
-
fill(int)
-
-
fill(int, double)
-
-
fill(String)
-
-
fill(String, double)
-
-
getArea()
-
-
getBin(int)
-
-
getBinAt(Date)
-
-
getBinAt(double)
-
-
getBinAt(int)
-
-
getBinAt(String)
-
-
getBins()
-
-
getEntries()
-
-
getError(int)
-
-
getMean()
-
-
getMinusError(int)
-
-
getMinusErrors()
-
-
getOverflow()
-
-
getPartition()
-
-
getPlusError(int)
-
-
getPlusErrors()
-
-
getRMS()
-
-
getUnderflow()
-
-
hasAsymmetricErrorBars()
-
-
partitionDestroyedNotify()
-
-
setPartition(Abstract1DPartition)
-
Histogram
public Histogram(String name)
- Create a new histogram.
- Parameters:
- name - The name of the histogram. If a histogram of this name
already exists its contents are cleared and a reference
to the previously existing histogram is returned.
Histogram
public Histogram(String name,
HistogramFolder parent)
fill
public void fill(double x)
- Fill a histogram with a single double
- Parameters:
- x - X coordinate
fill
public void fill(double x,
double value)
- Fill a histogram with a single double
- Parameters:
- x - X coordinate
- value - Value (weight) to be assigned to this fill operation
fill
public void fill(int x)
fill
public void fill(int x,
double value)
fill
public void fill(String x)
fill
public void fill(String x,
double value)
fill
public void fill(Date x)
fill
public void fill(Date x,
double value)
getBinAt
public int getBinAt(double x) throws NoSuchBinException
getBinAt
public int getBinAt(int x) throws NoSuchBinException
getBinAt
public int getBinAt(String x) throws NoSuchBinException
getBinAt
public int getBinAt(Date x) throws NoSuchBinException
getBin
public double getBin(int bin) throws NoSuchBinException
hasAsymmetricErrorBars
public boolean hasAsymmetricErrorBars()
getPlusError
public double getPlusError(int bin)
getMinusError
public double getMinusError(int bin)
getPlusErrors
public double[] getPlusErrors()
getMinusErrors
public double[] getMinusErrors()
getError
protected double getError(int bin)
getBins
public double[] getBins()
getOverflow
public double getOverflow()
getUnderflow
public double getUnderflow()
getEntries
public int getEntries()
getArea
public double getArea()
getMean
public double getMean()
getRMS
public double getRMS()
setPartition
public void setPartition(Abstract1DPartition p)
partitionDestroyedNotify
public void partitionDestroyedNotify()
getPartition
public Abstract1DPartition getPartition()
All Packages Class Hierarchy This Package Previous Next Index