crflynn / stochastic

Generate realizations of stochastic processes in python.
http://stochastic.readthedocs.io/en/stable/
MIT License
451 stars 80 forks source link

Add a more general diffusion process #73

Open jorgeecardona opened 1 year ago

jorgeecardona commented 1 year ago

Would it be possible to add a class with a simple general difussion? Something like $dX_t = b(t, X_t) dt + \sigma(t, X_t) dW_t$ where the functions $\sigma$ and $b$ passed as arguments to the class initialization are both functions of time and space.

I imagine in some circunstances (non-Lipschitz) the behaviour of the solution can't be ensured or easily controlled. But a simple warning in the docs should suffice and maybe some examples of how it fails would be academically interesting for the users.

Best.