search for: linesearch

Displaying 3 results from an estimated 3 matches for "linesearch".

2007 Aug 04
7
Optimization in R
...written some tricky functions to compare implementations, http://www.econ.upenn.edu/~clausen/computing/tests.zip My own implementation has several advantages over optim()'s implementation (which you can see in the vmmin() function in https://svn.r-project.org/R/trunk/src/main/optim.c) * the linesearch algorithm (More-Thuente) quickly finds a region of interest to zoom into. Moreover, it strikes a much better balance between finding a point that adequately improves upon the old point, but doesn't waste too much time finding a much better point. (Unlike optim(), it uses the standard Wolfe co...
2012 Oct 26
3
summation sign
Hi all, I have a very quick question on how to use the summation sign in R for the function. Here?s a basic example: the function is sum(i=1 to 5)log(1-xi^2) Id be grateful if someone knows how to do this without writing it out 5 times - I am looking sth along the lines of the following: computeR <- function(x) { return (-sum(log(1-x^2)) }^ thank you vm in advance! -- View this
2008 May 30
2
Any good Rails example app created with RSpec and Rspec on Rails?
Hi, I''m pretty new to RSpec. I''ve been browsing http://opensourcerails.com to find a good app built using RSpec (and RSpec on Rails). Does anybody have a recommendation? I wanna see example of mocks/stubs, associated models and integrated_view. -T