de.cesr.more.util.distributions
Class MRandomEngineGenerator

java.lang.Object
  extended by de.cesr.more.util.distributions.MRandomEngineGenerator

public class MRandomEngineGenerator
extends Object

MORe This wrapper is applied to use RandomEngines as RandomGenerator within the apache commons math library.

Date:
12.09.2013

Constructor Summary
MRandomEngineGenerator(cern.jet.random.engine.RandomEngine twister)
           
 
Method Summary
 boolean nextBoolean()
           
 void nextBytes(byte[] arg0)
           
 double nextDouble()
           
 float nextFloat()
           
 double nextGaussian()
           
 int nextInt()
           
 int nextInt(int arg0)
           
 long nextLong()
           
 void setSeed(int arg0)
           
 void setSeed(int[] arg0)
           
 void setSeed(long arg0)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MRandomEngineGenerator

public MRandomEngineGenerator(cern.jet.random.engine.RandomEngine twister)
Parameters:
twister -
Method Detail

nextBoolean

public boolean nextBoolean()
See Also:
org.apache.commons.math3.random.RandomGenerator#nextBoolean()

nextBytes

public void nextBytes(byte[] arg0)
See Also:
org.apache.commons.math3.random.RandomGenerator#nextBytes(byte[])

nextDouble

public double nextDouble()
See Also:
org.apache.commons.math3.random.RandomGenerator#nextDouble()

nextFloat

public float nextFloat()
See Also:
org.apache.commons.math3.random.RandomGenerator#nextFloat()

nextGaussian

public double nextGaussian()
See Also:
org.apache.commons.math3.random.RandomGenerator#nextGaussian()

nextInt

public int nextInt()
See Also:
org.apache.commons.math3.random.RandomGenerator#nextInt()

nextInt

public int nextInt(int arg0)
See Also:
org.apache.commons.math3.random.RandomGenerator#nextInt(int)

nextLong

public long nextLong()
See Also:
org.apache.commons.math3.random.RandomGenerator#nextLong()

setSeed

public void setSeed(int arg0)
See Also:
org.apache.commons.math3.random.RandomGenerator#setSeed(int)

setSeed

public void setSeed(int[] arg0)
See Also:
org.apache.commons.math3.random.RandomGenerator#setSeed(int[])

setSeed

public void setSeed(long arg0)
See Also:
org.apache.commons.math3.random.RandomGenerator#setSeed(long)