Skip to main content

little helper functions

Project description

License: MIT build workflow codecov

little_helpers

Some helpful functions that keep being used in various of my repositories, install via:

pip install little_helpers

array_tools.py

  • y_at_y: Find values in y_values that belongs to the values in x_values clostest to x.
  • closest_index: Find the index of a value in array x_values that is clostest to x.
  • segment_xy_values: Segment the x_values and y_values according to segment borders.

math_functions.py

  • langmuir_isotherm: Calculate the q_e values of a simple Langmuir isotherm.
  • langmuir_isotherm_hydrogel: Calculate the adsotpion inside a hydrogel based on a Langmuir model taking the swelling into account.
  • langmuir_comp: Calculate the q_e values of a Langmuir isotherm taking into account competetive adsorption of two species.
  • triangle: Calculate a triangle function.
  • gaussian: Calculate one or a superposition of Gaussian normal distributions.
  • boxcar: Calculate a boxcar function.
  • boxcar_convolution: Calculate the convolution of a boxcar function with another function.
  • piecewise_polynomial: Calculate the y values of a piecewise polynomial.
  • flory_rehner: Calculate 1/M_c according to the Flory-Rehner equation.
  • Herschel_Bulkley: Calculate the stress according tot he Herschel-Bulkley model.
  • cum_dist_normal: Cumulative distribution function for the normal distribution.
  • cum_dist_normal_with_rise: Superposition of cum_dist_normal and a linear function through the origin.

num_derive.py

A simple method to calculate the derivative of discrete data.

statsmodel_wrapper.py

A universal sklearn-style wrapper for statsmodels regressors.

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

little_helpers-0.0.6.tar.gz (16.8 kB view details)

Uploaded Source

Built Distribution

little_helpers-0.0.6-py3-none-any.whl (16.9 kB view details)

Uploaded Python 3

File details

Details for the file little_helpers-0.0.6.tar.gz.

File metadata

  • Download URL: little_helpers-0.0.6.tar.gz
  • Upload date:
  • Size: 16.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.0

File hashes

Hashes for little_helpers-0.0.6.tar.gz
Algorithm Hash digest
SHA256 022a91070689d2bc8778cd146591c84e66ea4f28491f4b3b3548594f2288760b
MD5 e748f20c4ff377ebd85b2366853232a4
BLAKE2b-256 4f6cc8515d5e33667f64ef11af5fbc891636432548580c529ca21e736190b18a

See more details on using hashes here.

File details

Details for the file little_helpers-0.0.6-py3-none-any.whl.

File metadata

File hashes

Hashes for little_helpers-0.0.6-py3-none-any.whl
Algorithm Hash digest
SHA256 3fac902f4eaf21df455fead898bfc02488adf67e1f78163e51e3512ec9a70e3f
MD5 db44ee1f4ed47e5e01b04a3c22a5fb35
BLAKE2b-256 286fa026edba5ea8cafeb54574bda16b043dd93896d44235744fd016aed418db

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 Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page