Posts Tagged ‘ optimisation ’

Lambert’s W function and the generalised logarithm

November 16, 2011
By
$Lambert’s W function and the generalised logarithm$

Yesterday I ran into an equation that was a sum of an exponential and a linear term: It doesn’t take long to figure out that there is no analytical solution, and so I set out to write some crappy numerical code. After wasting some time with a fixed point iteration that did not really work,

Code Optimization: One R Problem, Ten Solutions – Now Eleven!

November 2, 2011
By

Earlier this year I came across a rather interesting page about optimisation in R from rwiki. The goal was to find the most efficient code to produce strings which follow the pattern below given a single integer input n: From this we can see that the general pattern for n is: It is rather heart

nlm [unused argument(s) (iter = 1)]

December 28, 2010
By

Ashley put the following comment on Chapter 5 of Introducing Monte Carlo Methods with R”: I am reading chapter 5. I try to reproduced the result on page 128. The R codes don’t work on my laptop. When I try to run the following codes on page 128 > for (i in 1:(nlm(like,sta)\$it)){ + mmu=rbind(mmu,nlm(like,sta,iter=i)\$est)}