Math

Various mathematical utility functions.

creamas.math.gaus_pdf(x, mean, std)[source]

Gaussian distribution’s probability density function.

See, e.g. Wikipedia page for normal distribution.

Parameters
  • x (float or numpy.ndarray) – point in x-axis

  • mean (float) – mean or expectation

  • str (float) – standard deviation

Returns

pdf(s) in point x

Return type

float or numpy.ndarray

creamas.math.logistic(x, x0, k, L)[source]

Logistic function.

See, e.g Wikipedia page for logistic function.

Parameters
  • x (float or numpy.ndarray) – point in x-axis

  • x0 (float) – sigmoid’s midpoint

  • k (float) – steepness of the curve

  • L (float) – maximum value of the curve

Returns

function’s value(s) in point x

Return type

float or numpy.ndarray