Documentation of 'hep.aida.ref.dataset.binner.EfficiencyBinner' Java class
EfficiencyBinner
hep.aida.ref.dataset.binner

Class 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
      void addContentToBin(int[] bin, int entries, double height, double[] mean, double[] rms)
      Add a set of entries to the existing content of the bin.
      double height(int[] bin)
      Get the height of a bin.
      void removeContentFromBin(int[] bin, int entries, double height, double[] mean, double[] rms)
      Remove a set of entries from a bin.
      void setBinContent(int[] bin, int entries, double height, double[] mean, double[] rms)
      Set at once the content of a bin.
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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:
        setBinContent in interface Binner
        Overrides:
        setBinContent in class DefaultBinner
        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 means
        rms - The array with the coordinate rmss
      • addContentToBin

        public void addContentToBin(int[] bin,
                                    int entries,
                                    double height,
                                    double[] mean,
                                    double[] rms)
        Description copied from interface: Binner
        Add 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:
        addContentToBin in interface Binner
        Overrides:
        addContentToBin in class DefaultBinner
        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 means
        rms - The array with the coordinate rmss
      • removeContentFromBin

        public void removeContentFromBin(int[] bin,
                                         int entries,
                                         double height,
                                         double[] mean,
                                         double[] rms)
        Description copied from interface: Binner
        Remove a set of entries from a bin.
        Specified by:
        removeContentFromBin in interface Binner
        Overrides:
        removeContentFromBin in class DefaultBinner
        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 means
        rms - The array with the coordinate rmss
      • height

        public double height(int[] bin)
        Get the height of a bin.
        Specified by:
        height in interface Binner
        Overrides:
        height in class DefaultBinner
        Parameters:
        bin - The array specifying the bin.

DMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.