de.erichseifert.gral.util
Class HaltonSequence

java.lang.Object
  extended by 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.
 
Method Summary
 boolean hasNext()
           
 Double next()
           
 void remove()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

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()
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.