net.sourceforge.cilib.math.random.generator.quasi
Class Sobol

java.lang.Object
  extended by java.util.Random
      extended by net.sourceforge.cilib.math.random.generator.Random
          extended by net.sourceforge.cilib.math.random.generator.quasi.QuasiRandom
              extended by net.sourceforge.cilib.math.random.generator.quasi.Sobol
All Implemented Interfaces:
Serializable, Cloneable

public class Sobol
extends QuasiRandom

Implementation adapted from http://people.scs.fsu.edu/~burkardt/f_src/sobol/sobol.html.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class net.sourceforge.cilib.math.random.generator.quasi.QuasiRandom
dimensions, skipValue
 
Constructor Summary
Sobol()
           
Sobol(long seed)
           
 
Method Summary
 Sobol getClone()
          Create a cloned copy of the current object and return it.
protected  int next(int bits)
           
 double[] nextPoint()
           
 void setSeed(long seed)
           
 
Methods inherited from class net.sourceforge.cilib.math.random.generator.quasi.QuasiRandom
getDimensions, getSkipValue, setDimensions, setSkipValue
 
Methods inherited from class java.util.Random
nextBoolean, nextBytes, nextDouble, nextFloat, nextGaussian, nextInt, nextInt, nextLong
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Sobol

public Sobol()

Sobol

public Sobol(long seed)
Method Detail

setSeed

public void setSeed(long seed)
Overrides:
setSeed in class Random

getClone

public Sobol getClone()
Description copied from class: Random
Create a cloned copy of the current object and return it. In general the created copy will be a deep copy of the provided instance. As a result this operation an be quite expensive if used incorrectly.

Specified by:
getClone in interface Cloneable
Specified by:
getClone in class Random
Returns:
An exact clone of the current object instance.
See Also:
Object.clone()

next

protected int next(int bits)
Overrides:
next in class Random

nextPoint

public double[] nextPoint()
Specified by:
nextPoint in class QuasiRandom


Copyright © 2009 CIRG. All Rights Reserved.