Module with general functions that are not specialised for fitting, optimisation, sensitivity analysis, etc.

The current functions are:
curvature Curvature of function f: f’’/(1+f’^2)^3/2

This module was written by Matthias Cuntz while at Department of Computational Hydrosystems, Helmholtz Centre for Environmental Research - UFZ, Leipzig, Germany, and continued while at Institut National de Recherche pour l’Agriculture, l’Alimentation et l’Environnement (INRAE), Nancy, France.

Copyright (c) 2015-2020 Matthias Cuntz - mc (at) macu (dot) de Released under the MIT License; see LICENSE file for details.

  • Written Mar 2015 by Matthias Cuntz (mc (at) macu (dot) de)
  • Changed to Sphinx docstring and numpydoc, Dec 2019, Matthias Cuntz
  • Split logistic and curvature into separate files, May 2020, Matthias Cuntz

The following functions are provided:

curvature(x, dfunc, d2func, *args, **kwargs) Curvature of function:
curvature(x, dfunc, d2func, *args, **kwargs)[source]

Curvature of function:

  • x (array_like) – Independent variable to evalute curvature
  • dfunc (callable) – Function giving first derivative of function f: f’, to be called dfunc(x, *args, **kwargs)
  • d2func (callable) – Function giving second derivative of function f: f’’, to be called d2func(x, *args, **kwargs)
  • args (iterable) – Arguments passed to dfunc and d2func
  • kwargs (dict) – Keyword arguments passed to dfunc and d2func

Curvature of function f at x

Return type:

float or ndarray