MCPcopy Create free account
hub / github.com/Apress/python-for-matlab-development / func

Function func

code/optim/bridge_de.py:34–37  ·  view source on GitHub ↗
(parameters, *data)

Source from the content-addressed store, hash-verified

32def Fn(t, A, B, C, D):
33 return A*np.exp(-B*t)*np.sin(C*t) + D
34def func(parameters, *data):
35 A, B, C, D = parameters
36 Fn, t, Y = data
37 return np.linalg.norm(Fn(t,A,B,C,D)-Y)
38def compute_ABCD(bounds, t, y_meas):
39 args = (Fn, t, y_meas)
40 DE_result = differential_evolution(func, bounds, args=args)

Callers 1

predbandFunction · 0.85

Calls 1

FnFunction · 0.70

Tested by

no test coverage detected