Skip to main content

Utility functions

Project description

cornutils

Python package containing utility functions

Install

python3 -m pip install cornutils

Example Usage of praktika

import numpy as np
from cornutils.praktika import Data, PlotSettings, aio

x = np.array([0,2,4,6,8,10,12,14,16,18,])
y = np.array([2.8,5.2,6.8,9.6,11.2,14,15.6,17,19.8,21.4,])
delta_y = np.array([1.0,1.5,1.2,0.9,1.4,1.4,1.5,1.2,1.3,1.5,])
data = Data(x, y, sy=delta_y)

s = PlotSettings(label_x='x-label', label_y = 'y-label',label_fit='Test')

def func(beta, x):
    '''
    Function to use for estimation, beta is an array with each parameter
    '''
    y = beta[0] + beta[1] * x
    return y

aio(func, 2, data, s)

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

cornutils-0.4.1.tar.gz (296.4 kB view details)

Uploaded Source

Built Distribution

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

cornutils-0.4.1-py3-none-any.whl (295.5 kB view details)

Uploaded Python 3

File details

Details for the file cornutils-0.4.1.tar.gz.

File metadata

  • Download URL: cornutils-0.4.1.tar.gz
  • Upload date:
  • Size: 296.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.6 CPython/3.8.5 Linux/5.12.10-zen1-1-zen

File hashes

Hashes for cornutils-0.4.1.tar.gz
Algorithm Hash digest
SHA256 b9b204713739b5f6fe39755649c6de967d80568641e7f6908cd2fd140d454ee8
MD5 bab2b2511ef121cb5d6ce9a89b74b19e
BLAKE2b-256 0b980af0bde3924591a51c07f2067b4c9a251cff95dddc409b687bdbd53b558e

See more details on using hashes here.

File details

Details for the file cornutils-0.4.1-py3-none-any.whl.

File metadata

  • Download URL: cornutils-0.4.1-py3-none-any.whl
  • Upload date:
  • Size: 295.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.6 CPython/3.8.5 Linux/5.12.10-zen1-1-zen

File hashes

Hashes for cornutils-0.4.1-py3-none-any.whl
Algorithm Hash digest
SHA256 a0b30133c238baba3cec2c0db76414259ddb0a0108f4461974d3d39a6fe955f5
MD5 50b4ae723a744a5616e37c536bca99b8
BLAKE2b-256 5f2d7b6fec8c2a3558893e4f2df22653a81b9aa49943e10bfbfbe0737f9f2ce9

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