About: Seqbuild
Go to the Github project, seqbuild for more information.
Basic Usage
After installation, the below script would load up the user interface.
from seqbuild.face import sb_ui
sb_ui.run_sb_app()
Inside the interface, there is a HELP button. Additionally, for any term T of
question, submit
help T.
for more details.
There is also a convenient way to auto-generate Comm Lang files, which can then be
loaded up into the user interface through the sb_ui.run_sb_app() command, or used
for other purposes.
from face.easy_gen_struct import *
filepath = "Your_Comm_Lang_filepath.txt"
base_gen_name = "name"
use_prng_for_prng_pr = 0.5
vector_files = ["your_vector_files.txt"]
cl_files = ["other_Comm_Lang_files_you_want_to_load_up.txt"]
consistent_PRNG_output = True | False
cauto = TimeBasedCommLangFileGenerator(filepath,base_gen_name,\
use_prng_for_prng_pr,vector_files,cl_files,consistent_PRNG_output)
cauto.generate()
Last but not least, the TimeBasedCommLangFileGenerator can also be used to generate single
PRNGs, from the list of PRNGs in the next section.
from face.easy_gen_struct import *
S = one_T_random_struct("prng_name")
PRNG Categories in Comm Lang
Here is a list of PRNGs and their categories available for use in Comm Lang.
- Class 0: LCGs and LCG form-fitters
lcg,lcgv2,lcgv3,mdrgen
- Class 1: linear combination and polynomial-based
rch,idforest,udls
- Class I: identity
echo
- Class 2: multi-factored form-fitters with noise adders
ssino,gg,shadow
- Class T: time-based (or 'real number exploder`)
pdd
- Class D: differentials of form-fitters b/t two-dimensional points
fit22,lps
- Class 3: stacked vector-based form-fitters with noise adders
n2m,afs
- Class O: operation-based
optri,cshift,pmulti
- Class V: quotient and polynomial differential form-fitters of vector inputs
qval,pid.
Statistical Tests for Randomness
In seqbuild, there are two primary tests to measure randomness of PRNGs: QUALTEST
and CHAINTEST. The simplified usage of these two tests, besides from being commands in
the Comm Lang user interface, is done through file<face.prng_stats>. Here is an example.
from face.prng_stats import *
G = "your PRNG"
ngram_info = "relatively small positive intiger or intigers"
partition_size = "relatively small positive intiger"
S = PRNGStats(G,ngram_info,partition_size)
S.run()
q,c = S.latest_results()
print("QUALTEST SCORE")
print(q)
print("CHAINTEST SCORE")
print(c)
There are also input PRNG/output PRNG comparators in that file.
Disclaimer
The class<TimeBasedCommLangFileGenerator> is still in Alpha development. At some timestamps, the
generated Comm Lang file may fail certain randomness measures.
Third-Party Python Libraries
numpy>=1.22.1 matplotlib>=3.5.3 scipy>=1.14.1 morebs2>=0.1.72 python-resources>=0.3
Release files for seqbuild 0.0.74
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| seqbuild-0.0.74.tar.gz | 672.6 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| seqbuild-0.0.74-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 1.4 MB
Release files / seqbuild-0.0.74.tar.gz
| Download URL | seqbuild-0.0.74.tar.gz |
|---|---|
| Size | 672.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
dd9c4ff8677c726756409ec086f29bbb518a348cef8e0b5a8d38a89fea664c16
|
|
BLAKE2b-256 checksum How to use checksums |
99b32681dcdbd25d50b2abfc12668b902bf2b8ed4029f1e2c2452aed2698a10d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.14.5
|
Release files / seqbuild-0.0.74-py3-none-any.whl
| Download URL | seqbuild-0.0.74-py3-none-any.whl |
|---|---|
| Size | 710.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
597f2079852d2306ea8f4d5a4fa3798cca31365d7405771c96693d7cb298419b
|
|
BLAKE2b-256 checksum How to use checksums |
4c8d9e3b73d444cf4b4ddaaf6599afbbf5e9ec589645d8fb1ab4b9630bf08192
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.14.5
|