|
FreeHEP API Version current |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
A binner is responsible to keep track of the bins statistics for a binned data container in n-dimensions. Internally, the statistics of each bin should be calculating by using an nDimensional DataStatistics.
Method Summary | |
void |
addContentToBin(int[] bin,
int entries,
double height,
double[] mean,
double[] rms)
Add a set of entries to the existing content of the bin. |
int |
entries(int[] bin)
Get the number of entries in a bin. |
void |
fill(int[] bin,
double[] x,
double weight)
Fill a bin with a new entry. |
double |
height(int[] bin)
Get the height of a bin. |
double |
mean(int[] bin,
int coord)
Get the mean of a bin along a given coordinate. |
double |
minusError(int[] bin)
Get the minus error on a bin. |
double |
plusError(int[] bin)
Get the plus error on a bin. |
void |
removeContentFromBin(int[] bin,
int entries,
double height,
double[] mean,
double[] rms)
Remove a set of entries from a bin. |
void |
reset()
Reset the content of the Binner. |
void |
resetBin(int[] bin)
Reset the content of a bin. |
double |
rms(int[] bin,
int coord)
Get the rms of a bin along a given coordinate. |
void |
scale(double scaleFactor)
Scale all the bins by a given scale factor. |
void |
setBinContent(int[] bin,
int entries,
double height,
double[] mean,
double[] rms)
Set at once the content of a bin. |
Method Detail |
public void fill(int[] bin, double[] x, double weight)
bin
- The array specifying the bin.x
- The coordinate's arrayweight
- The weight for this entry.public void setBinContent(int[] bin, int entries, double height, double[] mean, double[] rms)
bin
- The array specifying the bin.entries
- The entries in the bin.height
- The height of the bin.mean
- The array with the coordinate meansrms
- The array with the coordinate rmsspublic void addContentToBin(int[] bin, int entries, double height, double[] mean, double[] rms)
bin
- The array specifying the bin.entries
- The entries in the bin.height
- The height of the bin.mean
- The array with the coordinate meansrms
- The array with the coordinate rmsspublic void removeContentFromBin(int[] bin, int entries, double height, double[] mean, double[] rms)
bin
- The array specifying the bin.entries
- The entries in the bin.height
- The height of the bin.mean
- The array with the coordinate meansrms
- The array with the coordinate rmsspublic void resetBin(int[] bin)
bin
- The array specifying the bin.public void reset()
public int entries(int[] bin)
bin
- The array specifying the bin.public double height(int[] bin)
bin
- The array specifying the bin.public double plusError(int[] bin)
bin
- The array specifying the bin.public double minusError(int[] bin)
bin
- The array specifying the bin.public double mean(int[] bin, int coord)
bin
- The array specifying the bin.coord
- The coordinate's index.public double rms(int[] bin, int coord)
bin
- The array specifying the bin.coord
- The coordinate's index.public void scale(double scaleFactor)
scaleFactor
- The scale factor.
|
FreeHEP API Version current |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |