Template Class MilsteinIntegrator
Defined in File milstein.hpp
Inheritance Relationships
Base Type
public diffeq::sde::AbstractSDEIntegrator< StateType >
(Template Class AbstractSDEIntegrator)
Class Documentation
-
template<system_state StateType>
class MilsteinIntegrator : public diffeq::sde::AbstractSDEIntegrator<StateType> Milstein method for SDEs.
First-order strong method with correction term: X_{n+1} = X_n + f(t_n, X_n) * dt + g(t_n, X_n) * dW_n + 0.5 * g(t_n, X_n) * g’(t_n, X_n) * (dW_n^2 - dt)
Strong order: 1.0 Weak order: 1.0
Note: Requires derivative of diffusion function g’(t, X)
Public Types
-
using base_type = sde::AbstractSDEIntegrator<StateType>
-
using diffusion_derivative_function = std::function<void(time_type, const state_type&, state_type&)>
Public Functions
-
inline virtual void step(state_type &state, time_type dt) override
-
inline virtual std::string name() const override
-
using base_type = sde::AbstractSDEIntegrator<StateType>