Skip to main content

Tool for estimating growth rates

Project description

About

This module provides a CLI tool for rough approximations according to a catalog of prescribed growth rates.

The tool currently features most well-known classes of growth rates and works by fitting each generic growth rate function to the given data.

Its primary use is in estimating time or memory complexities of various algorithms, but it can also be used on data coming from physical measurements.

Install

To install from pypi:

pip3 install --user matchgrowth

Usage

The CLI tool expects to be passed through --infile a CSV file, and through --col1 and --col2 two column names present inside the CSV file. Currently the CSV file needs to have headers for all columns.

The --top parameter allows to limit the number of matched growth rates reported.

The --outfile parameter is optional and allows to write the generated plot to a PNG file on disk. If the --outfile parameter is not passed, the default GUI from matplotlib will be used to display the plot.

usage: match-growth.py [-h] --infile INFILE [--outfile OUTFILE] --col1 COL1
                       --col2 COL2 [--top TOP]

Tool for estimating growth rates

optional arguments:
  -h, --help         show this help message and exit
  --infile INFILE    CSV input file with measurements
  --outfile OUTFILE  PNG file to write the plot to
  --col1 COL1        data column 1 from the CSV
  --col2 COL2        data column 2 from the CSV
  --top TOP          only print top N closest growth rates

Example usage:

match-growth.py --infile ./tests/modif7_bench.txt --outfile r1.png --col1 N --col2 memory --top 2
drawing

Support

For questions or requests for paid support, please send an e-mail to business@garage-coding.com

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

matchgrowth-0.0.2.tar.gz (4.1 kB view details)

Uploaded Source

Built Distribution

matchgrowth-0.0.2-py3-none-any.whl (4.6 kB view details)

Uploaded Python 3

File details

Details for the file matchgrowth-0.0.2.tar.gz.

File metadata

  • Download URL: matchgrowth-0.0.2.tar.gz
  • Upload date:
  • Size: 4.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.6.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.54.1 CPython/3.7.3

File hashes

Hashes for matchgrowth-0.0.2.tar.gz
Algorithm Hash digest
SHA256 ce8626e5f0baffd247282a6dff43a5b485ac6ae29f70156c75632ccce66fc1c5
MD5 1da026f373a5f2994f55b8df440e2544
BLAKE2b-256 06240ea58909eb439bdc2d56926a576901a7f566e725e592358c2425b5f38959

See more details on using hashes here.

File details

Details for the file matchgrowth-0.0.2-py3-none-any.whl.

File metadata

  • Download URL: matchgrowth-0.0.2-py3-none-any.whl
  • Upload date:
  • Size: 4.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.6.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.54.1 CPython/3.7.3

File hashes

Hashes for matchgrowth-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 c2ace0273095dfd65755a3df18a16d64e6ae6cdf25d5a3d6db5631dcbd85c9d4
MD5 08f8127fb81c1b4db3c84a2396be2ce3
BLAKE2b-256 196b3cf7e4ac884d6c8c1d67806b1d0a46624c84c3076a0d6fd7668370ba674c

See more details on using hashes here.

Supported by

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