Dynamic Programming implementation of function f_{Z_t}(l_{1:n})
l (tuple) – vector l, should be a tuple or list
k (float) – parameter k
s (tuple) – jump time points
J (tuple) – jump sizes
function value
float