|
|||||||||
| 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.Profile2D
public class Profile2D
| Constructor Summary | |
|---|---|
Profile2D()
Create a 1-dimensional Profile. |
|
Profile2D(String name,
String title,
IAxis xAxis,
IAxis yAxis)
Create a 1-dimensional Profile. |
|
Profile2D(String name,
String title,
IAxis xAxis,
IAxis yAxis,
String options)
|
|
| Method Summary | |
|---|---|
void |
add(IProfile2D profile)
Modifies this profile 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. |
int |
binEntries(int indexX,
int indexY)
The number of entries (ie the number of times fill was called for this bin). |
int |
binEntriesX(int indexX)
Equivalent to projectionX().binEntries(indexX). |
int |
binEntriesY(int indexY)
Equivalent to projectionY().binEntries(indexY). |
double |
binError(int indexX,
int indexY)
The error on this bin. |
double |
binHeight(int indexX,
int indexY)
Total height of the corresponding bin (ie the sum of the weights in this bin). |
double |
binHeightX(int indexX)
Equivalent to projectionX().binHeight(indexX). |
double |
binHeightY(int indexY)
Equivalent to projectionY().binHeight(indexY). |
double |
binMeanX(int indexX,
int indexY)
The weighted mean along x of a given bin. |
double |
binMeanY(int indexX,
int indexY)
The weighted mean along y of a given bin. |
double |
binRms(int indexX,
int indexY)
The spread (RMS) of this bin. |
int |
coordToIndexX(double coord)
Convenience method, equivalent to xAxis().coordToIndex(coord). |
int |
coordToIndexY(double coord)
Convenience method, equivalent to yAxis().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,
double z)
Fill the IProfile2D. |
void |
fill(double x,
double y,
double z,
double weight)
Fill the IProfile2D. |
void |
initProfile2D(IAxis xAxis,
IAxis yAxis)
|
void |
initProfile2D(IAxis xAxis,
IAxis yAxis,
String options)
|
double |
maxBinHeight()
Get the maximum height of the in-range bins. |
double |
meanX()
Returns the mean of the in-range data of the profile, as calculated on filling-time projected on the X axis. |
double |
meanY()
Returns the mean of the in-range data of the profile, as calculated on filling-time projected on the Y axis. |
double |
minBinHeight()
Get the minimum height of the in-range bins. |
void |
reset()
Reset the histogram; as if just created. |
double |
rmsX()
Returns the rms of the in-range data of the profile as calculated on filling-time projected on the X axis. |
double |
rmsY()
Returns the rms of the in-range data of the profile as calculated on filling-time projected on the Y axis. |
void |
scale(double scaleFactor)
|
void |
setContents(double[][] heights,
double[][] errors,
int[][] entries,
double[][] rmss,
double[][] meanXs,
double[][] meanYs)
|
void |
setMeanX(double meanX)
|
void |
setMeanY(double meanY)
|
void |
setNEntries(int entries)
|
void |
setRmsX(double rmsX)
|
void |
setRmsY(double rmsY)
|
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. |
IAxis |
xAxis()
Return the X axis. |
IAxis |
yAxis()
Return the Y axis. |
| 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 Profile2D()
public Profile2D(String name,
String title,
IAxis xAxis,
IAxis yAxis)
name - The name of the Profile as a ManagedObject.title - The title of the Profile.xAxis - The x-axis of the Profile.yAxis - The y-axis of the Profile.
public Profile2D(String name,
String title,
IAxis xAxis,
IAxis yAxis,
String options)
| Method Detail |
|---|
public void reset()
AbstractBaseHistogram
reset in interface IBaseHistogramreset in class AbstractBaseHistogram
public double binMeanX(int indexX,
int indexY)
IProfile2D
binMeanX in interface IProfile2DindexX - The x bin number (0...N-1) or OVERFLOW or UNDERFLOW.indexY - The y bin number (0...N-1) or OVERFLOW or UNDERFLOW.
public double binMeanY(int indexX,
int indexY)
IProfile2D
binMeanY in interface IProfile2DindexX - The x bin number (0...N-1) or OVERFLOW or UNDERFLOW.indexY - The y bin number (0...N-1) or OVERFLOW or UNDERFLOW.
public int binEntries(int indexX,
int indexY)
IProfile2D
binEntries in interface IProfile2DindexX - the x bin number (0...Nx-1) or OVERFLOW or UNDERFLOW.indexY - the y bin number (0...Ny-1) or OVERFLOW or UNDERFLOW.public int binEntriesX(int indexX)
IProfile2D
binEntriesX in interface IProfile2Dpublic int binEntriesY(int indexY)
IProfile2D
binEntriesY in interface IProfile2D
public double binError(int indexX,
int indexY)
IProfile2D
binError in interface IProfile2DindexX - the x bin number (0...Nx-1) or OVERFLOW or UNDERFLOW.indexY - the y bin number (0...Ny-1) or OVERFLOW or UNDERFLOW.
public double binHeight(int indexX,
int indexY)
IProfile2D
binHeight in interface IProfile2DindexX - the x bin number (0...Nx-1) or OVERFLOW or UNDERFLOW.indexY - the y bin number (0...Ny-1) or OVERFLOW or UNDERFLOW.public double binHeightX(int indexX)
IProfile2D
binHeightX in interface IProfile2Dpublic double binHeightY(int indexY)
IProfile2D
binHeightY in interface IProfile2D
public double binRms(int indexX,
int indexY)
IProfile2D
binRms in interface IProfile2DindexX - the x bin number (0...Nx-1) or OVERFLOW or UNDERFLOW.indexY - the y bin number (0...Ny-1) or OVERFLOW or UNDERFLOW.public int coordToIndexX(double coord)
IProfile2D
coordToIndexX in interface IProfile2DIAxis.coordToIndex(double)public int coordToIndexY(double coord)
IProfile2D
coordToIndexY in interface IProfile2DIAxis.coordToIndex(double)
public void fill(double x,
double y,
double z)
throws IllegalArgumentException
IProfile2D
fill in interface IProfile2DIllegalArgumentException
public void fill(double x,
double y,
double z,
double weight)
throws IllegalArgumentException
IProfile2D
fill in interface IProfile2DIllegalArgumentExceptionpublic double meanX()
IProfile2D
meanX in interface IProfile2Dpublic double meanY()
IProfile2D
meanY in interface IProfile2Dpublic double rmsX()
IProfile2D
rmsX in interface IProfile2Dpublic double rmsY()
IProfile2D
rmsY in interface IProfile2Dpublic IAxis xAxis()
IProfile2D
xAxis in interface IProfile2Dpublic IAxis yAxis()
IProfile2D
yAxis in interface IProfile2Dpublic 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 maxBinHeight()
IProfile
maxBinHeight in interface IProfilepublic double minBinHeight()
IProfile
minBinHeight in interface IProfilepublic double sumAllBinHeights()
IProfile
sumAllBinHeights in interface IProfilepublic double sumBinHeights()
IProfile
sumBinHeights in interface IProfilepublic double sumExtraBinHeights()
IProfile
sumExtraBinHeights in interface IProfile
public void scale(double scaleFactor)
throws IllegalArgumentException
IllegalArgumentException
public void add(IProfile2D profile)
throws IllegalArgumentException
IProfile2D
add in interface IProfile2DIllegalArgumentException - if the profile binnings are incompatible
public void initProfile2D(IAxis xAxis,
IAxis yAxis)
public void initProfile2D(IAxis xAxis,
IAxis yAxis,
String options)
public void setRmsX(double rmsX)
public void setRmsY(double rmsY)
public void setMeanX(double meanX)
public void setMeanY(double meanY)
public void setNEntries(int entries)
public void setValidEntries(int entries)
public void setContents(double[][] heights,
double[][] errors,
int[][] entries,
double[][] rmss,
double[][] meanXs,
double[][] meanYs)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||