2.3.16. sdepy.rvmap¶
-
sdepy.rvmap(f, y)[source]¶ Map f to random variates of distribution y, possibly time-dependent.
Parameters: - f : callable
Callable with signature
f(y), orf(t, y)orf(s, y), to be mapped to the random variates ofyory(t)- y : distribution, or callable
Distribution, possibly time-dependent, as accepted by
cpoisson_source.
Returns: - new_y : Distribution, or callable
An object with and
rvs(shape)method, or a callable withnew_y(t)evaluating to such object, as accepted bycpoisson_source.new_y.rvs(shape), ornew_y(t).rvs(shape), returnsf(y.rvs(shape)), orf([t, ] y(t).rvs(shape).
See also
Notes
new_ydoes not provide anymean, std, var, exp_meanmethod.To be recognized as time-dependent,
fshould have its first parameter namedtors.