View source: R/test_function.R
sim_fun_grad | R Documentation |
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 + σ dW/dt = - 4x^3 - ay - b + σ dW/dt
dy/dt = - \partial U/ \partial y + σ dW/dt = - 4y^3 - ax - c + σ dW/dt
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 )
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 |
A matrix of simulation results.
sim_fun_nongrad()
and batch_simulation()
.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.