dynam_record | R Documentation |
With a interation formula, update the status state in a memory-saving way, and record the results.
dynam_record(init,index,
Fupdate,.combine = 'rbind',
record_per=1)
init |
Initial state of a system |
index |
Index (range) to interate within |
Fupdate |
Function to update current status flow (with no extra parameters). |
.combine |
Method to combine results. Must be character input, choose between 'rbind', 'cbind' and'list'. |
record_per |
Linspace division for record. |
dynam_cat
#2D Brownian Motion
dynam_runif=dynam_record(init = c(1,1),index=1:100,Fupdate=(function(x) x+rnorm(2, mean=0, sd=1)))
plot(dynam_runif[,2],dynam_runif[,3],type='l',xlab='x',ylab='y')
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.