public class HaltonSequence
extends java.lang.Object
implements java.util.Iterator<java.lang.Double>, java.io.Serializable
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.
|
public HaltonSequence()
public HaltonSequence(int base)
base
- Base value.public boolean hasNext()
true
if next
would return an element rather
than throwing an exception.hasNext
in interface java.util.Iterator<java.lang.Double>
true
if the iterator has more elements.public java.lang.Double next()
next
in interface java.util.Iterator<java.lang.Double>
public void remove()
Iterator
interface.remove
in interface java.util.Iterator<java.lang.Double>