@@ -50,24 +50,24 @@ class BaseWELL( ListIndexState ):
5050 zeroland.
5151
5252 Notice: the algorithm in the 4 different versions implemented here has been coded
53- here as a direct implementation of their descriptions in the initial paper
54- "Improved Long-Period Generators Based on Linear Recurrences Modulo 2", François
55- PANNETON and Pierre L’ ECUYER (Université de Montréal) and Makoto MATSUMOTO
56- (Hiroshima University), in ACM Transactions on Mathematical Software, Vol. 32,
57- No. 1, March 2006, Pages 1– 16.
53+ as a direct implementation of their descriptions in the initial paper "Improved
54+ Long-Period Generators Based on Linear Recurrences Modulo 2", François PANNETON
55+ and Pierre L' ECUYER (Université de Montréal) and Makoto MATSUMOTO (Hiroshima
56+ University), in ACM Transactions on Mathematical Software, Vol. 32, No. 1, March
57+ 2006, Pages 1- 16.
5858 (see https://www.iro.umontreal.ca/~lecuyer/myftp/papers/wellrng.pdf).
5959 So, only minimalist optimization has been coded, with the aim at easing the
6060 verification of its proper implementation.
6161
6262 See Well512a for a large period WELL-Generator (2^512, i.e. 1.34e+154) with low
6363 computation time and 16 integers memory little consumption.
64+
6465 See Well1024a for a longer period WELL-Generator (2^1024, i.e. 2.68e+308), same
6566 computation time and 32 integers memory consumption.
66- See Well199937b for a far longer period (2^19937, i.e. 4.32e+6001) with similar
67+
68+ See Well199937c for a far longer period (2^19937, i.e. 4.32e+6001) with similar
6769 computation time but use of more memory space (624 integers).
68- See Well44497b for a very large period (2^44497, i.e. 15.1e+13466) with similar
69- computation time but use of even more memory space (1,391 integers).
70-
70+
7171 Please notice that this class and all its inheriting sub-classes are callable.
7272 Example:
7373
@@ -129,11 +129,20 @@ def __init__(self, _stateSize: int, _seedState: SeedStateType = None, /) -> None
129129
130130 #-------------------------------------------------------------------------
131131 def seed (self , _seed : Numerical = None , / ) -> None : # type: ignore
132+ """Initiates the internal state of this pseudo-random generator.
133+ """
132134 super ().seed ( _seed )
133135
134136
135137 #-------------------------------------------------------------------------
136138 def setstate (self , _state : StateType = None , / ) -> None : # type: ignore
139+ """Restores the internal state of the generator.
140+
141+ _state should have been obtained from a previous call to getstate().
142+ 'setstate()' restores the internal state of the generator to what it
143+ was at the time getstate() was lastly called.
144+ Inheriting classes MUST IMPLEMENT this method.
145+ """
137146 super ().setstate (_state )
138147
139148
0 commit comments