Documentation of 'de.erichseifert.gral.util.HaltonSequence' Java class
HaltonSequence
de.erichseifert.gral.util

Class HaltonSequence

  • All Implemented Interfaces:
    java.io.Serializable, java.util.Iterator<java.lang.Double>


    public class HaltonSequence
    extends java.lang.Object
    implements java.util.Iterator<java.lang.Double>, java.io.Serializable
    Class that calculates the values of the Halton sequence.
    See Also:
    Serialized Form
    • Constructor Summary

      Constructors 
      Constructor and Description
      HaltonSequence()
      Creates a new HaltonSequence object to the base of two.
      HaltonSequence(int base)
      Creates a new instance with the specified base.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      boolean hasNext()
      Returns whether the iteration has more elements.
      java.lang.Double next()
      Returns the next element in the iteration.
      void remove()
      Stub method to fulfill Iterator interface.
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface java.util.Iterator

        forEachRemaining
    • Constructor Detail

      • HaltonSequence

        public HaltonSequence()
        Creates a new HaltonSequence object to the base of two.
      • HaltonSequence

        public HaltonSequence(int base)
        Creates a new instance with the specified base.
        Parameters:
        base - Base value.
    • Method Detail

      • hasNext

        public boolean hasNext()
        Returns whether the iteration has more elements. This means it returns true if next would return an element rather than throwing an exception.
        Specified by:
        hasNext in interface java.util.Iterator<java.lang.Double>
        Returns:
        true if the iterator has more elements.
      • next

        public java.lang.Double next()
        Returns the next element in the iteration.
        Specified by:
        next in interface java.util.Iterator<java.lang.Double>
        Returns:
        the next element in the iteration.
      • remove

        public void remove()
        Stub method to fulfill Iterator interface.
        Specified by:
        remove in interface java.util.Iterator<java.lang.Double>

DataMelt 3.0 © DataMelt by jWork.ORG

Ads help maintain this website.