hep.aida.ref.histogram
Class Histogram
- java.lang.Object
-
- hep.aida.ref.event.AIDAObservable
-
- hep.aida.ref.ManagedObject
-
- hep.aida.ref.histogram.AbstractBaseHistogram
-
- hep.aida.ref.histogram.Histogram
-
- All Implemented Interfaces:
- IDevManagedObject, IBaseHistogram, IHistogram, IManagedObject, Connectable, IsObservable, java.io.Serializable
- Direct Known Subclasses:
- Histogram1D, Histogram2D, Histogram3D
public abstract class Histogram extends AbstractBaseHistogram implements IHistogram, IsObservable, java.io.Serializable
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor and Description Histogram()Histogram(java.lang.String name, java.lang.String title, int dimension, java.lang.String options)Create a new Histogram.
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method and Description intallEntries()Get all the entries in the Histogram, i.e.intentries()Get the entries that are within the range of the Histogram; i.e.doubleequivalentBinEntries()Get the number of equivalent entries; i.e.abstract intextraEntries()Get the number of entries in the underflow and overflow bins.booleanisMeanAndRmsSet()abstract doublemaxBinHeight()Get the maximum height of in-range bins in the Histogram.abstract doubleminBinHeight()Get the minimum height of in-range bins in the Histogram.intnanEntries()Number of entries whose coordinate or weight is NaN.voidreset()Reset the Histogram.abstract voidscale(double scaleFactor)Scale the weights and the errors by a given factor.voidsetNEntries(int entries)Developer area.voidsetValidEntries(int entries)abstract doublesumAllBinHeights()Get the sum of the bin heights for all the entries, in-range and out-range ones.doublesumBinHeights()Get the sum of the bin heights for in-range entries.abstract doublesumExtraBinHeights()Get the sum of the bin heights for all the entries outside the Histogram's range.-
Methods inherited from class hep.aida.ref.histogram.AbstractBaseHistogram
annotation, dimension, mapBinNumber, setAnnotation, setTitle, title
-
Methods inherited from class hep.aida.ref.ManagedObject
isFillable, name, setFillable, setName, type, typeForClass
-
Methods inherited from class hep.aida.ref.event.AIDAObservable
addListener, isConnected, removeAllListeners, removeListener, setConnected, setValid, setValidForAll
-
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface hep.aida.IBaseHistogram
annotation, dimension, setTitle, title
-
Methods inherited from interface hep.aida.ref.event.IsObservable
addListener, removeAllListeners, removeListener, setValid
-
Methods inherited from interface hep.aida.ref.event.Connectable
isConnected, setConnected
-
-
-
-
Constructor Detail
-
Histogram
public Histogram(java.lang.String name, java.lang.String title, int dimension, java.lang.String options)Create a new Histogram.- Parameters:
name- The name of the Histogram as a ManagedObject.title- The title of the Histogram.dimension- The dimension of the Histogram.
-
Histogram
public Histogram()
-
-
Method Detail
-
reset
public void reset()
Reset the Histogram. After calling this method the Histogram is as it was just created.- Specified by:
resetin interfaceIBaseHistogram- Overrides:
resetin classAbstractBaseHistogram
-
entries
public int entries()
Get the entries that are within the range of the Histogram; i.e. all the entries (the number of times the fill method was called) minus the entries in the overflow or underflow bins.- Specified by:
entriesin interfaceIBaseHistogram- Specified by:
entriesin classAbstractBaseHistogram- Returns:
- The in-range entries.
-
allEntries
public int allEntries()
Get all the entries in the Histogram, i.e. the number of times the method fill was called.- Specified by:
allEntriesin interfaceIHistogram- Returns:
- All the entries in the Histogram.
-
extraEntries
public abstract int extraEntries()
Get the number of entries in the underflow and overflow bins.- Specified by:
extraEntriesin interfaceIHistogram- Returns:
- The number of entries outside the range of the Histogram.
-
equivalentBinEntries
public double equivalentBinEntries()
Get the number of equivalent entries; i.e. SUM[ weight ] ^ 2 / SUM[ weight^2 ].- Specified by:
equivalentBinEntriesin interfaceIHistogram- Returns:
- The equivalent bin entries.
-
sumBinHeights
public double sumBinHeights()
Get the sum of the bin heights for in-range entries.- Specified by:
sumBinHeightsin interfaceIHistogram- Returns:
- The sum of the bin heights.
-
sumAllBinHeights
public abstract double sumAllBinHeights()
Get the sum of the bin heights for all the entries, in-range and out-range ones.- Specified by:
sumAllBinHeightsin interfaceIHistogram- Returns:
- The sum of all the bin's heights.
-
sumExtraBinHeights
public abstract double sumExtraBinHeights()
Get the sum of the bin heights for all the entries outside the Histogram's range.- Specified by:
sumExtraBinHeightsin interfaceIHistogram- Returns:
- The sum of the out of range bin's heights.
-
minBinHeight
public abstract double minBinHeight()
Get the minimum height of in-range bins in the Histogram.- Specified by:
minBinHeightin interfaceIHistogram- Returns:
- The minimum bin height for in range bins.
-
maxBinHeight
public abstract double maxBinHeight()
Get the maximum height of in-range bins in the Histogram.- Specified by:
maxBinHeightin interfaceIHistogram- Returns:
- The maximum bin height for in range bins.
-
scale
public abstract void scale(double scaleFactor)
Scale the weights and the errors by a given factor.- Specified by:
scalein interfaceIHistogram- Parameters:
scaleFactor- The scale factor.
-
setNEntries
public void setNEntries(int entries)
Developer area. All the non-AIDA methods are down here.
-
setValidEntries
public void setValidEntries(int entries)
-
nanEntries
public int nanEntries()
Description copied from class:AbstractBaseHistogramNumber of entries whose coordinate or weight is NaN. Such entries are counted as allEntries but don't contribute to the statistics.- Specified by:
nanEntriesin interfaceIBaseHistogram- Specified by:
nanEntriesin classAbstractBaseHistogram- Returns:
- The number of entries whose value or weight is NaN.
-
isMeanAndRmsSet
public boolean isMeanAndRmsSet()
-
-
DMelt 3.0 © DataMelt by jWork.ORG