search for: fullenumeration

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

2002 Nov 25
3
Full enumeration, how can this be vectorized
...function to each of the triples in the matrix in an efficient way. From the resulting vector I could then easily take the minimum value index and get the parameters from the parameter matrix. Could someone kindly give me a hint how this could be implemented? Thanks a lot, Daniel Code Snippet: fullEnumeration <- function(par, stepSize = c(.03, .03, .03)) { res <- Inf best.x <- -1 best.y <- -1 best.z <- -1 stepx <- stepSize[1] stepy <- stepSize[2] stepz <- stepSize[3] x <- seq(.01, 2, by=stepx) y <- seq(.01, 2, by=stepy) z <- seq(.01, 15, b...