search for: boundsi

Displaying 2 results from an estimated 2 matches for "boundsi".

Did you mean: bounds
2007 Aug 23
1
Expedite scalar f(x) evaluation over vectors
Dear R community, I am trying to code a fairly complex equation for optim(). My current approach is too slow for optim(). I have a function that takes a double integral (hopefully correctly) across two terms, e.g., doubleint <- function(c1,c2) {integrate(function(y) { sapply(y, function(y) { integrate(function(x) {a*(c1+x)+b*(c2+x)}, boundsx[1], boundsx[2])$value }) },
2007 Aug 23
1
Clarification: Expedite scalar f(x) evaluation over vectors
Please note clarifications in <<>> below. My apologies for any confusion. Thanks again, Scott ---------- Forwarded message ---------- From: Scott Stark <stark.sc@gmail.com> Date: Aug 23, 2007 1:03 PM Subject: Expedite scalar f(x) evaluation over vectors To: r-help@lists.r-project.org Dear R community, I am trying to code a fairly complex equation for optim(). My current