hep.aida.ref.dataset.binner
Class EfficiencyBinner
- java.lang.Object
-
- hep.aida.ref.dataset.binner.DefaultBinner
-
- hep.aida.ref.dataset.binner.EfficiencyBinner
-
- All Implemented Interfaces:
- Binner
public class EfficiencyBinner extends DefaultBinner
This binner is for efficiency-type of data. The bins are re-normalized to be between 0 and 1 by taking the ratio between the bin height and the bin entries.
-
-
Constructor Summary
Constructors Constructor and Description EfficiencyBinner(int[] bins, java.lang.String options)Creates a new instance of Binner.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description voidaddContentToBin(int[] bin, int entries, double height, double[] mean, double[] rms)Add a set of entries to the existing content of the bin.doubleheight(int[] bin)Get the height of a bin.voidremoveContentFromBin(int[] bin, int entries, double height, double[] mean, double[] rms)Remove a set of entries from a bin.voidsetBinContent(int[] bin, int entries, double height, double[] mean, double[] rms)Set at once the content of a bin.-
Methods inherited from class hep.aida.ref.dataset.binner.DefaultBinner
entries, fill, mean, minusError, plusError, reset, resetBin, rms, scale, setBinError
-
-
-
-
Constructor Detail
-
EfficiencyBinner
public EfficiencyBinner(int[] bins, java.lang.String options)Creates a new instance of Binner.- Parameters:
bins- The array containing the number of bins per coordinate.options- The options.
-
-
Method Detail
-
setBinContent
public void setBinContent(int[] bin, int entries, double height, double[] mean, double[] rms)Set at once the content of a bin.- Specified by:
setBinContentin interfaceBinner- Overrides:
setBinContentin classDefaultBinner- Parameters:
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 rmss
-
addContentToBin
public void addContentToBin(int[] bin, int entries, double height, double[] mean, double[] rms)Description copied from interface:BinnerAdd a set of entries to the existing content of the bin. Notice that this is meant to be used instead of fill ONLY when the number of entries in the set is greater than one.- Specified by:
addContentToBinin interfaceBinner- Overrides:
addContentToBinin classDefaultBinner- Parameters:
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 rmss
-
removeContentFromBin
public void removeContentFromBin(int[] bin, int entries, double height, double[] mean, double[] rms)Description copied from interface:BinnerRemove a set of entries from a bin.- Specified by:
removeContentFromBinin interfaceBinner- Overrides:
removeContentFromBinin classDefaultBinner- Parameters:
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 rmss
-
height
public double height(int[] bin)
Get the height of a bin.- Specified by:
heightin interfaceBinner- Overrides:
heightin classDefaultBinner- Parameters:
bin- The array specifying the bin.
-
-
DMelt 3.0 © DataMelt by jWork.ORG