A tool for calculating the hyper distribution from pushing a prior into a channel. Quantitative Information Flow.
Project description
pyqif
A tool for Quantitative information flow applications. At this point the tool calculates a hyper distribution from a channel marix and a prior distribution.
How to run:
After installation do:
pyqif
Takes ordered inputs from stdin:
- Channel label, ex:
C - Prior lenght & channel's output size, ex:
3 4 - Pior distribution, ex:
1/3 0.3333333 1/3 - Channel matrix, line by line:
1/4 1/4 1/4 1/4
0.25 0.25 0.25 0.25
1/4 1/4 1/4 1/4
Flags
Help
Prints command's help.
pyqif --help
Verbose
Activates verbose execution mode.
pyqif --verbose
Latex
Switches output type to latex. The latex code format is appropriate for markdown documents that use $$ as math block dellimiters.
pyqif --latex
Examples
File input
Executing tool redirecting input from file.
Creating example file:
C
3 4
1/4 1/2 1/4
1/2 1/2 0 0
0 1/4 1/2 1/4
1/2 1/3 1/6 0
pyqif < file
Latex ooutput
Executing tool with redirected input and output. In this scenario the test.md file will cointains the formatted results.
pyqif -l < file > test.md
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file pyqif-0.0.5.tar.gz.
File metadata
- Download URL: pyqif-0.0.5.tar.gz
- Upload date:
- Size: 5.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.6.3 pkginfo/1.7.1 requests/2.22.0 requests-toolbelt/0.9.1 tqdm/4.62.0 CPython/3.8.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
21da09b020f9e2e6093b635eee699838d0214b4845bb4999a7d3aad34c6a16f5
|
|
| MD5 |
c6105cdbb50b5de4c6bb03a3dbb321d5
|
|
| BLAKE2b-256 |
24651c453c11f61229aca31f9d3a47e23e76e1457e841db0b5f31bf4f338d155
|
File details
Details for the file pyqif-0.0.5-py3-none-any.whl.
File metadata
- Download URL: pyqif-0.0.5-py3-none-any.whl
- Upload date:
- Size: 6.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.6.3 pkginfo/1.7.1 requests/2.22.0 requests-toolbelt/0.9.1 tqdm/4.62.0 CPython/3.8.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
fae5b4e677d62322837894230fba55b3479cb4e3ad175122f64011e9464fe26c
|
|
| MD5 |
ed867bc9b3d52333dde9278b1b7efa1d
|
|
| BLAKE2b-256 |
456420a842d836c586e1eebefd85e345ad6518d5bad2693e2b3be75e343cfebe
|