sim_fun_grad {simlandr} | R Documentation |
A simple gradient simulation function for testing
Description
This is a toy stochastic gradient system which can have bistability in some conditions. Model specification:
U = x^4 + y^4 + axy + bx + cy
dx/dt = - \partial U/ \partial x + \sigma dW/dt = - 4x^3 - ay - b + \sigma dW/dt
dy/dt = - \partial U/ \partial y + \sigma dW/dt = - 4y^3 - ax - c + \sigma dW/dt
Usage
sim_fun_grad(
initial = list(x = 0, y = 0),
parameter = list(a = -4, b = 0, c = 0, sigmasq = 1),
length = 1e+05,
stepsize = 0.01,
seed = NULL
)
Arguments
initial , parameter |
Two sets of parameters. |
length |
The length of simulation. |
stepsize |
The step size used in the Euler method. |
seed |
The initial seed that will be passed to |
Value
A matrix of simulation results.
See Also
sim_fun_nongrad()
and batch_simulation()
.
[Package simlandr version 0.3.1 Index]