|
FreeHEP API Version current |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object hep.aida.ref.dataSet.binner.DefaultBinner
The default implementation of a Binner.
Constructor Summary | |
DefaultBinner(int[] bins,
String options)
Creates a new instance of Binner. |
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. |
protected DataStatistics |
binStatistics(int bin)
Utility method to access a bin's statistical information. |
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. |
protected int |
internalBin(int[] bin)
Utility method to convert from the bin numbering to the internal bin representation. |
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. |
void |
setBinError(BinError binError)
Set the BinError with which the plus and minus error on the bin are calculated. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public DefaultBinner(int[] bins, String options)
bins
- The array containing the number of bins per coordinate.options
- The options.Method Detail |
protected int internalBin(int[] bin)
protected DataStatistics binStatistics(int bin)
public void fill(int[] bin, double[] x, double weight)
fill
in interface Binner
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)
setBinContent
in interface Binner
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)
Binner
addContentToBin
in interface Binner
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)
Binner
removeContentFromBin
in interface Binner
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)
resetBin
in interface Binner
bin
- The array specifying the bin.public void reset()
reset
in interface Binner
public int entries(int[] bin)
entries
in interface Binner
bin
- The array specifying the bin.public double height(int[] bin)
height
in interface Binner
bin
- The array specifying the bin.public double plusError(int[] bin)
plusError
in interface Binner
bin
- The array specifying the bin.public double minusError(int[] bin)
minusError
in interface Binner
bin
- The array specifying the bin.public double mean(int[] bin, int coord)
mean
in interface Binner
bin
- The array specifying the bin.coord
- The coordinate's index.public double rms(int[] bin, int coord)
rms
in interface Binner
bin
- The array specifying the bin.coord
- The coordinate's index.public void scale(double scaleFactor)
scale
in interface Binner
scaleFactor
- The scale factor.public void setBinError(BinError binError)
binError
- The BinError.
|
FreeHEP API Version current |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |