Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Sequence AnaLyzeR
Python
Branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
README.rst
helper.py
salr.py

README.rst

Sequence AnaLyzeR

Sequence AnaLyzeR's purpose is to analyze a sequence of tokens to evaluate how random the sequence is.

The pochisq & related function are adapted from Ent A Pseudorandom Number Sequence Test Program (http://www.fourmilab.ch/random/).

Available analyzers

character_count_tester

Returns a (probability observed distribution is uniform, histogram) tuple, for each column calculated across all sequences in sequences_list. It assumes all sequences have the same length.

Example:

sequences_list = ['abc', 'bca']
test_results = character_count_tester(sequences_list)
for (probability, histogram) in test_results:
    print probability, ' the distribution is random'
    _chart(histogram)
Something went wrong with that request. Please try again.