Collection of common fit functions for discribing ultrafast and static physics phenomena
Project description
ultrafastFitFunctions
Collection of common fit functions for discribing ultrafast and static physics phenomena to be compatible with lmfit.
To be compatible with the great fitting package lmfit, all functions need to have the independent variable as the first argument and it needs to be called 'x'. If it is not called 'x', when calling lmfit's fit, the new name needs to be specified, which is prone to errors.
=========Usage Example ===============
from ultrafastFitFunctions import *
Decays.expDecay(1,1,1)
======================================
======================================================== Valid parameters in order of appearance in the functions:
mu : shift of x by x0 / mu
sigT : T = '', S, H, ... ; width / scaling in x-directions. Similar / related to a FWHM.
taun : n = 1,2,... ; similar to sig; used as taun**1 in denominator of exp
A,B,C,D,... : multiplier / normalisation
c,a,b,d,... : offsets
k : slope
other:
alpha, beta, q : ratios
========================================================
Docstring:
r"""
What does the function do?
Parameters
----------
x : array_like
`x` represents the x-coordinates of a set of datapoints.
a : int
`a` represents the variable, which does... .
Returns
-------
y : ndarray
An array of the same shape as x.
"""
========================================================
2Do List
-
Most functions are written without a mu, should be changed?
Project details
Release history Release notifications | RSS feed
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 ultrafastFitFunctions-0.3.0.tar.gz.
File metadata
- Download URL: ultrafastFitFunctions-0.3.0.tar.gz
- Upload date:
- Size: 4.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.7.0 importlib_metadata/4.8.2 pkginfo/1.8.2 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.8.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e621dc0e6b951f77e27d76f275d56e847a8a3624f121db93022103517f1a8914
|
|
| MD5 |
1595335d0685ef01b1972f46daf4d4be
|
|
| BLAKE2b-256 |
6fd455302cab2029a57c9561552438ee842b0926bf0da9c2e5d99849362d9c55
|
File details
Details for the file ultrafastFitFunctions-0.3.0-py3-none-any.whl.
File metadata
- Download URL: ultrafastFitFunctions-0.3.0-py3-none-any.whl
- Upload date:
- Size: 4.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.7.0 importlib_metadata/4.8.2 pkginfo/1.8.2 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.8.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
58bcd06ed24fc9b4db27ccbd5e6c587e09f8a43200db38679ff0657438bf0839
|
|
| MD5 |
eb002cc2e3d24cf02a14cbdc4d4e6912
|
|
| BLAKE2b-256 |
d82fb7e9e82d1b4060dcd788657e8377d20a1f33e1e7059f79b68dd1bafd4c1e
|