Class AbstractStaticHistogram.Iter

    • Field Detail

      • bin

        int bin
        Current bin number
    • Constructor Detail

      • Iter

        public Iter()
    • Method Detail

      • getCenter

        public double getCenter()
        Description copied from interface: Histogram.Iter
        Get the bin center.
        Specified by:
        getCenter in interface Histogram.Iter
        Returns:
        bin center value
      • getLeft

        public double getLeft()
        Description copied from interface: Histogram.Iter
        Get the bin minimum.
        Specified by:
        getLeft in interface Histogram.Iter
        Returns:
        bin left value
      • getRight

        public double getRight()
        Description copied from interface: Histogram.Iter
        Get the bin maximum.
        Specified by:
        getRight in interface Histogram.Iter
        Returns:
        bin right value
      • valid

        public boolean valid()
        Description copied from interface: Iter
        Returns true if the iterator currently points to a valid object.
        Specified by:
        valid in interface Iter
        Returns:
        a boolean value, whether the position is valid.
      • getOffset

        public int getOffset()
        Description copied from interface: ArrayIter
        Get current iterator offset.
        Specified by:
        getOffset in interface ArrayIter
        Returns:
        Iterator position
      • advance

        public AbstractStaticHistogram.Iter advance​(int count)
        Description copied from interface: ArrayIter
        Moves the iterator forward or backward by the given offset.
        Specified by:
        advance in interface ArrayIter
        Parameters:
        count - offset to move forward or backwards
        Returns:
        Iterator