steps¶
Forward and Backward solvers
- steps.step1(D, a, K, im0, im, T, dt)¶
Solver for the forward KPP problem.
- Parameters:
D float: diffusion coefficient.
a float: growth coefficient.
K float: capacity coefficient.
im0 numpy array: image of the initial inoculum.
im numpy array: image of the leaf.
T number: final time.
dt float: time step.
- Return:
The solution of the forward KPP equation.
- steps.step2(D, a, K, v, vobs, im, T, dt)¶
Solver for the backward KPP problem.
- Parameters:
D float: diffusion coefficient.
a float: growth coefficient.
K float: capacity coefficient.
v numpy array: solution of the forward problem.
vobs numpy array: observed images of the lesion.
im numpy array: image of the leaf.
T number: final time.
dt float: time step.
- Return:
The solution of the forward KPP equation.