de.erichseifert.gral.util
Class HaltonSequence
java.lang.Object
de.erichseifert.gral.util.HaltonSequence
- All Implemented Interfaces:
- Iterator<Double>
public class HaltonSequence
- extends Object
- implements Iterator<Double>
Class that calculates the values of the Halton sequence.
Constructor Summary |
HaltonSequence()
Creates a new HaltonSequence object to the base of two. |
HaltonSequence(int base)
Creates a new instance with the specified base. |
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.
hasNext
public boolean hasNext()
- Specified by:
hasNext
in interface Iterator<Double>
next
public Double next()
- Specified by:
next
in interface Iterator<Double>
remove
public void remove()
- Specified by:
remove
in interface Iterator<Double>
Copyright © 2009-2010. All Rights Reserved.