|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objecthep.aida.ref.event.AIDAObservable
hep.aida.ref.ManagedObject
hep.aida.ref.histogram.AbstractBaseHistogram
hep.aida.ref.histogram.Histogram
hep.aida.ref.histogram.Histogram1D
public class Histogram1D
| Constructor Summary | |
|---|---|
Histogram1D()
Create a 1-dimensional Histogram. |
|
Histogram1D(String name,
String title,
IAxis axis)
Create a 1-dimensional Histogram. |
|
| Method Summary | |
|---|---|
void |
add(IHistogram1D hist)
Modifies this histogram by adding the contents of h to it. |
IAxis |
axis()
Get the X axis. |
int |
binEntries(int index)
Number of entries in the corresponding bin (ie the number of times fill was called for this bin). |
double |
binError(int index)
The error on this bin. |
double |
binHeight(int index)
Total height of the corresponding bin. |
double |
binMean(int index)
Get the mean of a bin. |
AbstractBinner1D |
binner()
|
double |
binRms(int index)
Get the RMS of a bin. |
int |
coordToIndex(double coord)
Convenience method, equivalent to axis().coordToIndex(coord). |
int |
extraEntries()
Get the number of entries in the underflow and overflow bins. |
void |
fill(double x)
Fill the Histogram with unit weight. |
void |
fill(double x,
double weight)
Fill the Histogram. |
void |
initHistogram1D(IAxis xAxis,
String options)
|
double |
maxBinHeight()
Get the maximum height of in-range bins in the Histogram. |
double |
mean()
Get the mean of the whole Histogram. |
double |
minBinHeight()
Get the minimum height of in-range bins in the Histogram. |
void |
reset()
Reset the Histogram. |
double |
rms()
Get the RMS of the whole Histogram. |
void |
scale(double scaleFactor)
Scale the weights and the errors by a given factor. |
void |
setContents(double[] binCenters,
double[] heights,
double[] errors,
int[] entries,
double[] sumWW,
double[] sumXW,
double[] sumXXW)
|
void |
setContents(double[] heights,
double[] errors,
int[] entries,
double[] means,
double[] rmss)
Set the content of the whole Histogram at once. |
void |
setMeanAndRms(double otherMean,
double otherRms)
Set the mean of the Histogram. |
double |
sumAllBinHeights()
Get the sum of the bin heights for all the entries, in-range and out-range ones. |
double |
sumExtraBinHeights()
Get the sum of the bin heights for all the entries outside the Histogram's range. |
| Methods inherited from class hep.aida.ref.histogram.Histogram |
|---|
allEntries, entries, equivalentBinEntries, isMeanAndRmsSet, nanEntries, setNEntries, setValidEntries, sumBinHeights |
| 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.IHistogram |
|---|
allEntries, equivalentBinEntries, sumBinHeights |
| Methods inherited from interface hep.aida.IBaseHistogram |
|---|
annotation, dimension, entries, nanEntries, 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 |
|---|
public Histogram1D()
public Histogram1D(String name,
String title,
IAxis axis)
name - The name of the Histogram as a ManagedObject.title - The title of the Histogram.axis - The x-axis of the Histogram.| Method Detail |
|---|
public void fill(double x)
fill in interface IHistogram1Dx - The value to be filled.
public void fill(double x,
double weight)
fill in interface IHistogram1Dx - The value to be filled.weight - The weight for this entry.public void reset()
reset in interface IBaseHistogramreset in class Histogrampublic int extraEntries()
extraEntries in interface IHistogramextraEntries in class Histogrampublic double sumAllBinHeights()
sumAllBinHeights in interface IHistogramsumAllBinHeights in class Histogrampublic double sumExtraBinHeights()
sumExtraBinHeights in interface IHistogramsumExtraBinHeights in class Histogrampublic double minBinHeight()
minBinHeight in interface IHistogramminBinHeight in class Histogrampublic double maxBinHeight()
maxBinHeight in interface IHistogrammaxBinHeight in class Histogrampublic int binEntries(int index)
binEntries in interface IHistogram1Dindex - the bin number in the external representation: (0...N-1) or OVERFLOW or UNDERFLOW.
public double binHeight(int index)
binHeight in interface IHistogram1Dindex - The bin number in the external representation: (0...N-1) or OVERFLOW or UNDERFLOW.
public double binError(int index)
binError in interface IHistogram1Dindex - the bin number in the external representation: (0...N-1) or OVERFLOW or UNDERFLOW.
public double mean()
mean in interface IHistogram1Dpublic double rms()
rms in interface IHistogram1D
public void setMeanAndRms(double otherMean,
double otherRms)
mean - The Histogram's x meanpublic IAxis axis()
axis in interface IHistogram1Dpublic int coordToIndex(double coord)
coordToIndex in interface IHistogram1Dcoord - The coordinalte along the x axis.
IAxis.coordToIndex(double)
public void scale(double scaleFactor)
throws IllegalArgumentException
scale in interface IHistogramscale in class HistogramscaleFactor - The scale factor.
IllegalArgumentException - If the scale factor is negative.
public void add(IHistogram1D hist)
throws IllegalArgumentException
add in interface IHistogram1Dhist - The histogram to be added to this histogram
IllegalArgumentException - if histogram binnings are incompatiblepublic double binMean(int index)
binMean in interface IHistogram1Dindex - The bin number in the external representation: (0...N-1) or OVERFLOW or UNDERFLOW.
public double binRms(int index)
index - the bin number in the external representation:(0...N-1) or OVERFLOW or UNDERFLOW.
public void setContents(double[] heights,
double[] errors,
int[] entries,
double[] means,
double[] rmss)
heights - The bins heightserrors - The bins errorsentries - The bin entries.means - The means of the bins.rmss - The rmss of the bins
public void setContents(double[] binCenters,
double[] heights,
double[] errors,
int[] entries,
double[] sumWW,
double[] sumXW,
double[] sumXXW)
binCenters - The bins centers, can be nullheights - The bins heights, can NOT be nullerrors - The bins errorsentries - The bin entries, can be nullsumWW - The sumWW of the bins, can be nullsumXW - The sumXW of the bins, can not be nullsumXXW - The sumXXW of the bins, can not be null
public void initHistogram1D(IAxis xAxis,
String options)
public AbstractBinner1D binner()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||