You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+5-4
Original file line number
Diff line number
Diff line change
@@ -2,15 +2,15 @@
2
2
A python implementation of the MIXMAX PRNG.
3
3
4
4
## Description
5
-
In this project we successfully construct a python implementation of the two-parameter family of C-system operators `A(N,s)`, as discussed in this [1] paper.
5
+
In this project we successfully construct a python implementation of the two-parameter family of C-system operators `A(N,s)`, as discussed in this [1] paper. A more general three-parameter family of C-system operators `A(N,s,m)` is calculated too. But our generator doesn't produce all the results of the three parameter family, whereas it works good for the two parameter family.
6
6
7
7
## Code
8
8
There are two implementations. The first attempt was a naive approach, using vanilla python3 for the construction of the operator `A(N,s)`. The second attempt, which is much better and faster is using cython for speeding up the construction process.
9
9
10
10
## How to use the python script
11
11
Run: `python3 create_matrix.py` . You'll get instructions then.
12
12
13
-
An example of correct run: `python3 create_matrix.py 100 0 1`.
13
+
An example of correct run: `python3 create_matrix.py 128 1 1`.
14
14
15
15
## How to use the cython files
16
16
@@ -23,10 +23,11 @@ Simply run in your terminal:
23
23
### Using the create_matrix_new.py script
24
24
Run: `python3 create_matrix_new.py`. You'll get instructions then.
25
25
26
-
A correct run: `python3 create_matrix_new.py 100 0 1`.
26
+
A correct run: `python3 create_matrix_new.py 128 1 1`.
27
27
28
28
## Features
29
-
Both programs plot the distributions of the eigenvalues of the given `A(N,s)` for input variables `N`,`s` on the plane.
29
+
Both programs plot the distributions of the eigenvalues of the given `A(N,s,m)` for input variables `N`,`s,m` on the plane.
30
+
When `m` equals `1` then `A(N,s,m``)` is the same matrix as the matrix `A(N,s)`.
30
31
31
32
## Results
32
33
The results agree with the results presented in the paper [1]. The distribution of the eigenvalues in some cases follow the curve of a cardioid as expected. For various other values of `N` and `s` different shapes are being created. See inside the images directory for more examples.
0 commit comments