SSJ
V. labo.

umontreal.iro.lecuyer.hups
Class LCGPointSet

java.lang.Object
  extended by umontreal.iro.lecuyer.hups.PointSet
      extended by umontreal.iro.lecuyer.hups.CycleBasedPointSet
          extended by umontreal.iro.lecuyer.hups.LCGPointSet

public class LCGPointSet
extends CycleBasedPointSet

LCGPointSet

Implements a recurrence-based point set defined via a linear congruential recurrence of the form xi = axi-1mod n and ui = xi/n. The implementation is done by storing the values of ui over the set of all cycles of the recurrence.


Nested Class Summary
 
Nested classes/interfaces inherited from class umontreal.iro.lecuyer.hups.CycleBasedPointSet
CycleBasedPointSet.CycleBasedPointSetIterator
 
Constructor Summary
LCGPointSet(int n, int a)
          .
LCGPointSet(int b, int e, int c, int a)
          .
 
Method Summary
 int geta()
          .
 String toString()
          .
 
Methods inherited from class umontreal.iro.lecuyer.hups.CycleBasedPointSet
addRandomShift, clearRandomShift, formatPoints, getCoordinate, getDimension, iterator
 
Methods inherited from class umontreal.iro.lecuyer.hups.PointSet
addRandomShift, addRandomShift, addRandomShift, formatPoints, formatPoints, formatPoints, formatPointsBase, formatPointsBase, formatPointsBase, formatPointsBase, formatPointsNumbered, formatPointsNumbered, getNumPoints, getStream, randomize, randomize, randomize, randomize, randomize, setStream, unrandomize
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

LCGPointSet

public LCGPointSet(int n,
                   int a)
. \begin{tabb}Constructs and stores the set of cycles for an LCG with
 modulus $n$...
 ...t one containing only 0
 and the second one of period length $n-1$.
 \end{tabb}
nrequired number of points and modulus of the LCG agenerator a of the LCG


LCGPointSet

public LCGPointSet(int b,
                   int e,
                   int c,
                   int a)
. \begin{tabb}Constructs and stores the set of cycles for an LCG with
 modulus $n = b^e + c$\ and multiplier $a$.
 \end{tabb}

Method Detail

toString

public String toString()
Description copied from class: PointSet
. \begin{tabb}
 Formats a string that contains information about the point set.
 \end{tabb}
string representation of the point set information

Overrides:
toString in class CycleBasedPointSet

geta

public int geta()
. \begin{tabb}Returns the value of the multiplier $a$.
 \end{tabb}


SSJ
V. labo.

To submit a bug or ask questions, send an e-mail to Pierre L'Ecuyer.