|
|||||||||
| 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.Histogram3D
public class Histogram3D
| Constructor Summary | |
|---|---|
Histogram3D()
Create a 3-dimensional Histogram. |
|
Histogram3D(String name,
String title,
IAxis xAxis,
IAxis yAxis,
IAxis zAxis)
Create a 3-dimensional Histogram. |
|
Histogram3D(String name,
String title,
IAxis xAxis,
IAxis yAxis,
IAxis zAxis,
String options)
Create a 3-dimensional Histogram. |
|
| Method Summary | |
|---|---|
void |
add(IHistogram3D hist)
Modifies this histogram by adding the contents of h to it. |
int |
binEntries(int indexX,
int indexY,
int indexZ)
Number of entries in the corresponding bin (ie the number of times fill was called for this bin). |
int |
binEntriesX(int indexX)
Number of entries with a given x bin number (ie the number of times fill was called for these bins). |
int |
binEntriesY(int indexY)
Number of entries with a given x bin number (ie the number of times fill was called for these bins). |
int |
binEntriesZ(int indexZ)
Number of entries with a given x bin number (ie the number of times fill was called for these bins). |
double |
binError(int indexX,
int indexY,
int indexZ)
The error on this bin. |
double |
binHeight(int indexX,
int indexY,
int indexZ)
Total height of the corresponding bin. |
double |
binHeightX(int indexX)
Total height of the corresponding x bin along y and z. |
double |
binHeightY(int indexY)
Total height of the corresponding y bin along x and z. |
double |
binHeightZ(int indexZ)
Total height of the corresponding z bin along x and y. |
double |
binMeanX(int indexX,
int indexY,
int indexZ)
Get the mean of a bin along the x axis. |
double |
binMeanY(int indexX,
int indexY,
int indexZ)
Get the mean of a bin along the y axis. |
double |
binMeanZ(int indexX,
int indexY,
int indexZ)
Get the mean of a bin along the z axis. |
double |
binRmsX(int indexX,
int indexY,
int indexZ)
Get the RMS of a bin along the x axis. |
double |
binRmsY(int indexX,
int indexY,
int indexZ)
Get the RMS of a bin along the y axis. |
double |
binRmsZ(int indexX,
int indexY,
int indexZ)
Get the RMS of a bin along the z axis. |
int |
coordToIndexX(double coordX)
Convenience method, equivalent to xAxis().coordToIndex(coord). |
int |
coordToIndexY(double coordY)
Convenience method, equivalent to yAxis().coordToIndex(coord). |
int |
coordToIndexZ(double coordZ)
Convenience method, equivalent to zAxis().coordToIndex(coord). |
int |
extraEntries()
Get the number of entries in the underflow and overflow bins. |
void |
fill(double x,
double y,
double z)
Fill the Histogram with unit weight. |
void |
fill(double x,
double y,
double z,
double weight)
Fill the Histogram. |
void |
initHistogram3D(IAxis xAxis,
IAxis yAxis,
IAxis zAxis,
String options)
|
double |
maxBinHeight()
Get the maximum height of in-range bins in the Histogram. |
double |
meanX()
Get the mean of the whole Histogram as projected on the x axis. |
double |
meanY()
Get the mean of the whole Histogram as projected on the y axis. |
double |
meanZ()
Get the mean of the whole Histogram as projected on the z axis. |
double |
minBinHeight()
Get the minimum height of in-range bins in the Histogram. |
void |
reset()
Reset the Histogram. |
double |
rmsX()
Get the RMS of the whole Histogram as projected on the x axis. |
double |
rmsY()
Get the RMS of the whole Histogram as projected on the y axis. |
double |
rmsZ()
Get the RMS of the whole Histogram as projected on the z axis. |
void |
scale(double scaleFactor)
Scale the weights and the errors by a given factor. |
void |
setBinError(int indexX,
int indexY,
int indexZ,
double error)
Set the error on this bin. |
void |
setContents(double[][][] heights,
double[][][] errors,
int[][][] entries,
double[][][] meanXs,
double[][][] rmsXs,
double[][][] meanYs,
double[][][] rmsYs,
double[][][] meanZs,
double[][][] rmsZs)
Set the content of the whole Histogram at once. |
void |
setMeanX(double meanX)
All the non-AIDA methods should go below this point. |
void |
setMeanY(double meanY)
|
void |
setMeanZ(double meanZ)
|
void |
setRmsX(double rmsX)
|
void |
setRmsY(double rmsY)
|
void |
setRmsZ(double rmsZ)
|
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. |
IAxis |
xAxis()
Get the X axis. |
IAxis |
yAxis()
Get the Y axis. |
IAxis |
zAxis()
Get the Z axis. |
| 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 Histogram3D()
public Histogram3D(String name,
String title,
IAxis xAxis,
IAxis yAxis,
IAxis zAxis)
name - The name of the Histogram as a ManagedObject.title - The title of the Histogram.xAxis - The x-axis of the Histogram.yAxis - The y-axis of the Histogram.zAxis - The z-axis of the Histogram.
public Histogram3D(String name,
String title,
IAxis xAxis,
IAxis yAxis,
IAxis zAxis,
String options)
name - The name of the Histogram as a ManagedObject.title - The title of the Histogram.xAxis - The x-axis of the Histogram.yAxis - The y-axis of the Histogram.zAxis - The z-axis of the Histogram.options - The options of the Histogram.| Method Detail |
|---|
public void fill(double x,
double y,
double z)
fill in interface IHistogram3Dx - The x value to be filled.y - The y value to be filled.z - The z value to be filled.
public void fill(double x,
double y,
double z,
double weight)
fill in interface IHistogram3Dx - The x value to be filled.y - The y value to be filled.z - The z 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 Histogram
public int binEntries(int indexX,
int indexY,
int indexZ)
binEntries in interface IHistogram3DindexX - The x bin number in the external representation: (0...N-1) or OVERFLOW or UNDERFLOW.indexY - The y bin number in the external representation: (0...N-1) or OVERFLOW or UNDERFLOW.indexZ - The z bin number in the external representation: (0...N-1) or OVERFLOW or UNDERFLOW.
public int binEntriesX(int indexX)
binEntriesX in interface IHistogram3DindexX - the x bin number in the external representation: (0...N-1) or OVERFLOW or UNDERFLOW.
public int binEntriesY(int indexY)
binEntriesY in interface IHistogram3DindexY - the y bin number in the external representation: (0...N-1) or OVERFLOW or UNDERFLOW.
public int binEntriesZ(int indexZ)
binEntriesZ in interface IHistogram3DindexZ - the z bin number in the external representation: (0...N-1) or OVERFLOW or UNDERFLOW.
public double binHeight(int indexX,
int indexY,
int indexZ)
binHeight in interface IHistogram3DindexX - The x bin number in the external representation: (0...N-1) or OVERFLOW or UNDERFLOW.indexY - The y bin number in the external representation: (0...N-1) or OVERFLOW or UNDERFLOW.indexZ - The z bin number in the external representation: (0...N-1) or OVERFLOW or UNDERFLOW.
public double binHeightX(int indexX)
binHeightX in interface IHistogram3DindexX - The x bin number in the external representation: (0...N-1) or OVERFLOW or UNDERFLOW.
public double binHeightY(int indexY)
binHeightY in interface IHistogram3DindexY - The y bin number in the external representation: (0...N-1) or OVERFLOW or UNDERFLOW.
public double binHeightZ(int indexZ)
binHeightZ in interface IHistogram3DindexZ - The y bin number in the external representation: (0...N-1) or OVERFLOW or UNDERFLOW.
public double binError(int indexX,
int indexY,
int indexZ)
binError in interface IHistogram3DindexX - The x bin number in the external representation: (0...N-1) or OVERFLOW or UNDERFLOW.indexY - The y bin number in the external representation: (0...N-1) or OVERFLOW or UNDERFLOW.indexZ - The z bin number in the external representation: (0...N-1) or OVERFLOW or UNDERFLOW.
public double meanX()
meanX in interface IHistogram3Dpublic double meanY()
meanY in interface IHistogram3Dpublic double meanZ()
meanZ in interface IHistogram3Dpublic double rmsX()
rmsX in interface IHistogram3Dpublic double rmsY()
rmsY in interface IHistogram3Dpublic double rmsZ()
rmsZ in interface IHistogram3Dpublic IAxis xAxis()
xAxis in interface IHistogram3Dpublic IAxis yAxis()
yAxis in interface IHistogram3Dpublic IAxis zAxis()
zAxis in interface IHistogram3Dpublic int coordToIndexX(double coordX)
coordToIndexX in interface IHistogram3DcoordX - The coordinalte along the x axis.
IAxis.coordToIndex(double)public int coordToIndexY(double coordY)
coordToIndexY in interface IHistogram3DcoordY - The coordinalte along the y axis.
IAxis.coordToIndex(double)public int coordToIndexZ(double coordZ)
coordToIndexZ in interface IHistogram3DcoordZ - The coordinalte along the z 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(IHistogram3D hist)
throws IllegalArgumentException
add in interface IHistogram3Dhist - The histogram to be added to this histogram
IllegalArgumentException - if histogram binnings are incompatiblepublic void setMeanX(double meanX)
public void setRmsX(double rmsX)
public void setMeanY(double meanY)
public void setRmsY(double rmsY)
public void setMeanZ(double meanZ)
public void setRmsZ(double rmsZ)
public double binMeanX(int indexX,
int indexY,
int indexZ)
binMeanX in interface IHistogram3DindexX - The x bin number in the external representation: (0...N-1) or OVERFLOW or UNDERFLOW.indexY - The y bin number in the external representation: (0...N-1) or OVERFLOW or UNDERFLOW.indexZ - The z bin number in the external representation: (0...N-1) or OVERFLOW or UNDERFLOW.
public double binMeanY(int indexX,
int indexY,
int indexZ)
binMeanY in interface IHistogram3DindexX - The x bin number in the external representation: (0...N-1) or OVERFLOW or UNDERFLOW.indexY - The y bin number in the external representation: (0...N-1) or OVERFLOW or UNDERFLOW.indexZ - The z bin number in the external representation: (0...N-1) or OVERFLOW or UNDERFLOW.
public double binMeanZ(int indexX,
int indexY,
int indexZ)
binMeanZ in interface IHistogram3DindexX - The x bin number in the external representation: (0...N-1) or OVERFLOW or UNDERFLOW.indexY - The y bin number in the external representation: (0...N-1) or OVERFLOW or UNDERFLOW.indexZ - The z bin number in the external representation: (0...N-1) or OVERFLOW or UNDERFLOW.
public double binRmsX(int indexX,
int indexY,
int indexZ)
indexX - The x bin number in the external representation:(0...N-1) or OVERFLOW or UNDERFLOW.indexY - The y bin number in the external representation:(0...N-1) or OVERFLOW or UNDERFLOW.indexZ - The z bin number in the external representation:(0...N-1) or OVERFLOW or UNDERFLOW.
public double binRmsY(int indexX,
int indexY,
int indexZ)
indexX - The x bin number in the external representation:(0...N-1) or OVERFLOW or UNDERFLOW.indexY - The y bin number in the external representation:(0...N-1) or OVERFLOW or UNDERFLOW.indexZ - The z bin number in the external representation:(0...N-1) or OVERFLOW or UNDERFLOW.
public double binRmsZ(int indexX,
int indexY,
int indexZ)
indexX - The x bin number in the external representation:(0...N-1) or OVERFLOW or UNDERFLOW.indexY - The y bin number in the external representation:(0...N-1) or OVERFLOW or UNDERFLOW.indexZ - The z bin number in the external representation:(0...N-1) or OVERFLOW or UNDERFLOW.
public void setBinError(int indexX,
int indexY,
int indexZ,
double error)
indexX - the bin number (0...N-1) or OVERFLOW or UNDERFLOW.indexY - the bin number (0...N-1) or OVERFLOW or UNDERFLOW.indexZ - the bin number (0...N-1) or OVERFLOW or UNDERFLOW.
public void setContents(double[][][] heights,
double[][][] errors,
int[][][] entries,
double[][][] meanXs,
double[][][] rmsXs,
double[][][] meanYs,
double[][][] rmsYs,
double[][][] meanZs,
double[][][] rmsZs)
heights - The bin heightserrors - The bin errorsentries - The bin entriesmeanXs - The means of the bin along the x axisrmsXs - The rmss of the bin along the x axismeanYs - The means of the bin along the y axisrmsYs - The rmss of the bin along the y axismeanZs - The means of the bin along the z axisrmsZs - The rmss of the bin along the z axis
public void initHistogram3D(IAxis xAxis,
IAxis yAxis,
IAxis zAxis,
String options)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||