impact.curve_fitting.core module

Functions for curve fitting

class impact.curve_fitting.core.CurveFitObject(paramList, growthEquation, method='slsqp')

Bases: object

Wrapper for curve fitting objects

Parameters:
paramList: List of parameters, with initial guess, max and min values
Each parameter is a dict with the following form
{‘name’: str PARAMETER NAME, ‘guess’: float or lambda function ‘max’: float or lambda function ‘min’: float or lambda function ‘vary’ True or False}
growthEquation: A function to fit with the following form:
def growthEquation(t, param1, param2, ..): return f(param1,param2,..)

method: lmfit method (slsqp, leastsq)

Methods

calcFit(t, data, **kwargs)
calcFit(t, data, **kwargs)
class impact.curve_fitting.core.GrowthRateSplineExtraction(paramList, growthEquation, method='slsqp')

Bases: object

Wrapper for curve fitting objects using splines

Parameters:
paramList: List of parameters, with initial guess, max and min values
Each parameter is a dict with the following form

{‘name’: str PARAMETER NAME,

‘guess’: float or lambda function

‘max’: float or lambda function

‘min’: float or lambda function

‘vary’ True or False}

growthEquation: A function to fit with the following form:
def growthEquation(t, param1, param2, ..): return f(param1,param2,..)

method: lmfit method (slsqp, leastsq)

Methods

get_growth_rate(t, data, **kwargs)
get_growth_rate(t, data, **kwargs)