search for: knext

Displaying 1 result from an estimated 1 matches for "knext".

Did you mean: next
2006 Nov 18
2
overhead of function calls
...gument, evaluates a spline at that argument, does some simple arithmetic with it (adding constants, multiplication). With R being a functional programming language, I implemented this by calling several functions inside the function: ## RHS of bellman equation f <- function(knext,k,ei) { util(consf(knext,k))+quickeval(knext,gridsecpp,Vkbarpp) } where quickeval evaluates a spline at knext (on gridsecpp, pp-form Vkbarpp), util is a function in the environment, and so is consf: ## consumption consf <- function(knext,k) { rp...