search for: stepx

Displaying 4 results from an estimated 4 matches for "stepx".

Did you mean: step
2011 Jan 25
1
Learn Vectorization (Vectorize)
...e find the equivalent of this code using Vectorize (or any other R thinking) My code takes as input a n*m matrix and prints the x,y coordinates where a cells starts and ends. remap <- function (sr){ # Input this funcion takes as arguments # sr: map startpos<- -1 # endpos<- +1 # stepx<- (endpos - (startpos)) / nrow(sr) stepy<- (endpos - (startpos)) / ncol(sr) for (i in seq(from=-1,to=1,by=stepx) ) { for (j in seq(from=-1,to=1,by=stepx) ){ cat(' \n',i,j) } } } sr<-matrix(data=seq(from=1,to=9),nrow=3,ncol=3,byrow=TRUE) remap(sr) Regards...
2002 Nov 25
3
Full enumeration, how can this be vectorized
...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, by=stepz) for (i in 1:length(x)) for (j in 1:length(y)) for (k in 1:length(z)) { # Pass the current best result...
2009 Jan 06
1
Web framework for embedded appliance?
Sorry for the off-topic post, but I figured someone here might know: I''m looking for a Ruby web framework that is suitable for developing a web service on an embedded network appliance. RAM is an issue, but probably not as much as hard drive space. Too many requirements likely make Rails a less than ideal candidate for this. If anyone has ideas for what would work, any input is
2008 Mar 11
2
[OT] HTTP headers status diagram
To paraphrase Woody Allen: "Everything you always wanted to know about HTTP headers status, but were afraid to ask" Alternatively: "An activity diagram to describe the resolution of HTTP response status codes, given various headers." http://thoughtpad.net/alan-dean/http-headers-status.html http://thoughtpad.net/alan-dean/http-headers-status.gif Cheers, -- PA