Skip to main content

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:

  1. Channel label, ex: C
  2. Prior lenght & channel's output size, ex: 3 4
  3. Pior distribution, ex: 1/3 0.3333333 1/3
  4. 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

pyqif-0.0.5.tar.gz (5.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pyqif-0.0.5-py3-none-any.whl (6.1 kB view details)

Uploaded Python 3

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

Hashes for pyqif-0.0.5.tar.gz
Algorithm Hash digest
SHA256 21da09b020f9e2e6093b635eee699838d0214b4845bb4999a7d3aad34c6a16f5
MD5 c6105cdbb50b5de4c6bb03a3dbb321d5
BLAKE2b-256 24651c453c11f61229aca31f9d3a47e23e76e1457e841db0b5f31bf4f338d155

See more details on using hashes here.

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

Hashes for pyqif-0.0.5-py3-none-any.whl
Algorithm Hash digest
SHA256 fae5b4e677d62322837894230fba55b3479cb4e3ad175122f64011e9464fe26c
MD5 ed867bc9b3d52333dde9278b1b7efa1d
BLAKE2b-256 456420a842d836c586e1eebefd85e345ad6518d5bad2693e2b3be75e343cfebe

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page