Convert between Itô and Stratonovich SDEs
Source:R/stochastic-sde.R
stochastic_integral_transform.Rdstochastic_integral_transform(sys, -1/2) converts an Itô system to the
equivalent Stratonovich system and 1/2 converts back, adding
correction_factor * sum_k (J g_k) g_k to the drift, where g_k are the
noise columns and J their Jacobian. For diagonal noise only the
derivative of each noise term with respect to its own state enters, which
is the correct correction; ModelingToolkit uses the full Jacobian here,
which agrees whenever each noise term depends only on its own state.