Displaying 1 result from an estimated 1 matches for "mysteryfunct".
2010 Nov 01
2
Recursive algorithm
Dear friend, I have to construct some recursive algorithm for which I used some for loop like:
res <- vector(length=10000)
res[1] = 0
for (i in 2:(10000+1)) res[i] <- res[i-1]*........some function
I have noticed that this is taking too much time. Is there any way to speed up things?
Thanks,