Interface Histogram

    • Method Detail

      • addBinContent

        void addBinContent​(int bin)
        Increment bin content by 1. More...
        Parameters:
        bin - global bin ID
      • addBinContent

        void addBinContent​(int bin,
                           double w)
        Increment bin content by a weight w. More...
        Parameters:
        bin - global bin ID
        w - weight
      • findBin

        int findBin​(double x,
                    double y)
        Parameters:
        x - spatial real-valued coordinate in X
        y - spatial real-valued coordinate in Y
        Returns:
        bin index corresponding to spatial x and y coordinates
      • findBin

        int findBin​(double x,
                    double y,
                    double z)
        Parameters:
        x - spatial real-valued coordinate in X
        y - spatial real-valued coordinate in Y
        z - spatial real-valued coordinate in Z
        Returns:
        bin index corresponding to spatial x, y and z coordinates
      • findBin

        int findBin​(int dimIndex,
                    double x)
        Parameters:
        dimIndex - the dimension index
        x - spatial real-valued coordinate for dimension dimIndex
        Returns:
        bin index corresponding to spatial x and y coordinates
      • getBinCenter

        double getBinCenter​(int dimIndex,
                            int binIndex)
        Parameters:
        dimIndex - the dimension index
        binIndex - index
        Returns:
        bin centre for axis with dimIndex
      • getBinContent

        double getBinContent​(int bin)
        Return content of bin number bin. Convention for numbering bins For all histogram types: nbins, xlow, xup bin = 0; underflow bin bin = 1; first bin with low-edge xlow INCLUDED bin = nbins; last bin with upper-edge xup EXCLUDED bin = nbins+1; overflow bin
        Parameters:
        bin - the index
        Returns:
        numeric bin content
      • isEquiDistant

        boolean isEquiDistant()
        Returns:
        true if bin sizes are equal
      • reset

        void reset()
        reset histogram content