|
|||||||||
| 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.Profile
hep.aida.ref.histogram.Profile1D
public class Profile1D
| Constructor Summary | |
|---|---|
Profile1D()
Create a 1-dimensional Profile. |
|
Profile1D(String name,
String title,
IAxis axis)
Create a 1-dimensional Profile. |
|
Profile1D(String name,
String title,
IAxis axis,
String options)
|
|
| Method Summary | |
|---|---|
void |
add(IProfile1D profile)
Modifies this IProfile1D by adding the contents of profile to it. |
int |
allEntries()
Get the number or all the entries, both in range and underflow/overflow bins of the IProfile. |
IAxis |
axis()
Returns 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 (ie the sum of the weights in this bin). |
double |
binMean(int index)
The weighted mean of the corresponding bin. |
double |
binRms(int index)
The spread (RMS) of a bin. |
int |
coordToIndex(double coord)
Convenience method, equivalent to axis().coordToIndex(coord). |
int |
entries()
Number of in-range entries in the histogram. |
int |
extraEntries()
Get the number of entries in the underflow and overflow bins. |
void |
fill(double x,
double y)
Fill the IProfile1D. |
void |
fill(double x,
double y,
double weight)
Fill the IProfile1D. |
void |
initProfile1D(IAxis axis)
|
void |
initProfile1D(IAxis axis,
String options)
|
double |
maxBinHeight()
Get the maximum height of the in-range bins. |
double |
mean()
Returns the mean of the in-range data of the profile as calculated on filling-time. |
double |
minBinHeight()
Get the minimum height of the in-range bins. |
void |
reset()
Reset the histogram; as if just created. |
double |
rms()
Returns the rms of the in-range data of the profile as calculated on filling-time. |
void |
scale(double scaleFactor)
|
void |
setContents(double[] heights,
double[] errors,
int[] entries,
double[] rmss,
double[] meanXs)
Set the content of the whole Histogram at once. |
void |
setMean(double mean)
|
void |
setNEntries(int entries)
|
void |
setRms(double rms)
|
void |
setValidEntries(int entries)
|
double |
sumAllBinHeights()
Get the sum of all the bins heights (including underflow and overflow bin). |
double |
sumBinHeights()
Get the sum of in range bin heights in the IProfile. |
double |
sumExtraBinHeights()
Get the sum of the underflow and overflow bin height. |
| Methods inherited from class hep.aida.ref.histogram.Profile |
|---|
nanEntries |
| 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, 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 Profile1D()
public Profile1D(String name,
String title,
IAxis axis)
name - The name of the Profile as a ManagedObject.title - The title of the Profile.axis - The x-axis of the Profile.
public Profile1D(String name,
String title,
IAxis axis,
String options)
| Method Detail |
|---|
public void reset()
AbstractBaseHistogram
reset in interface IBaseHistogramreset in class AbstractBaseHistogrampublic int entries()
AbstractBaseHistogram
entries in interface IBaseHistogramentries in class AbstractBaseHistogrampublic int allEntries()
IProfile
allEntries in interface IProfilepublic int extraEntries()
IProfile
extraEntries in interface IProfilepublic double sumAllBinHeights()
IProfile
sumAllBinHeights in interface IProfilepublic double sumBinHeights()
IProfile
sumBinHeights in interface IProfilepublic double sumExtraBinHeights()
IProfile
sumExtraBinHeights in interface IProfilepublic double minBinHeight()
IProfile
minBinHeight in interface IProfilepublic double maxBinHeight()
IProfile
maxBinHeight in interface IProfile
public void fill(double x,
double y,
double weight)
IProfile1D
fill in interface IProfile1D
public void fill(double x,
double y)
IProfile1D
fill in interface IProfile1Dpublic int binEntries(int index)
IProfile1D
binEntries in interface IProfile1Dindex - the bin number (0...N-1) or OVERFLOW or UNDERFLOW.public double binHeight(int index)
IProfile1D
binHeight in interface IProfile1Dindex - the bin number (0...N-1) or OVERFLOW or UNDERFLOW.public double binError(int index)
IProfile1D
binError in interface IProfile1Dindex - the bin number (0...N-1) or OVERFLOW or UNDERFLOW.public double binMean(int index)
IProfile1D
binMean in interface IProfile1Dindex - the bin number (0...N-1) or OVERFLOW or UNDERFLOW.
public double binRms(int index)
IProfile1D
binRms in interface IProfile1Dindex - the bin number (0...N-1) or OVERFLOW or UNDERFLOW.public double mean()
IProfile1D
mean in interface IProfile1Dpublic double rms()
IProfile1D
rms in interface IProfile1Dpublic IAxis axis()
IProfile1D
axis in interface IProfile1Dpublic int coordToIndex(double coord)
IProfile1D
coordToIndex in interface IProfile1DIAxis.coordToIndex(double)
public void scale(double scaleFactor)
throws IllegalArgumentException
IllegalArgumentException
public void add(IProfile1D profile)
throws IllegalArgumentException
IProfile1D
add in interface IProfile1Dprofile - The IProfile1D to be added to this IProfile1D
IllegalArgumentException - if profile binnings are incompatiblepublic void initProfile1D(IAxis axis)
public void initProfile1D(IAxis axis,
String options)
public void setRms(double rms)
public void setMean(double mean)
public void setContents(double[] heights,
double[] errors,
int[] entries,
double[] rmss,
double[] meanXs)
heights - The bins heightserrors - The bins errorsentries - The bin entries.rmss - The rmss of the binsmeanXs - The mean of the bin.public void setNEntries(int entries)
public void setValidEntries(int entries)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||