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.0.tar.gz
(296.3 kB
view hashes)
Built Distribution
cornutils-0.4.0-py3-none-any.whl
(295.5 kB
view hashes)
Close
Hashes for cornutils-0.4.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 59c6c4ac9bab0afbe3d0117e717deb160d5591a62c2bb6fe16acaf6ad3aa411e |
|
MD5 | c13eb0e7ed47f0c575c4442402d26c5d |
|
BLAKE2b-256 | 7756afb375777a2b01859a010a4589d3b7ad6bea3c7c70b3cd3c771dd20a2af0 |