search for: breaksy

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

Did you mean: breaks
2011 Jan 25
0
Map an Area to another
...f my function at the end): sr.map <- function(sr){ # This function converts the s(x,y) matrix into a function x spans from -1 #to 1 and y spans from -1 to 1. # Input: sr a x,y matrix containing the shadowing values of a Region breaksX <- seq(from=-1, to = 1, length = nrow(sr) +1L ) breaksY <- seq(from=-1, to = 1, length = ncol(sr) + 1L) function(x,y){ # SPAGGETI CODE FOR EVER indx <- findInterval(x, breaksX,rightmost.closed=TRUE) indy <- findInterval(y, breaksY,rightmost.closed=TRUE) if ( (x<0) && (y>0) ) # x<0,y>0 c(indx,ncol...
2011 Jan 26
0
Fwd: MAtrix addressing
...gt;>> function x that spans #from -1 to 1 and y spans from -1 to >>> 1. >>>> # Input: sr a x,y matrix containing the shadowing >>> values of a Region >>>> breaksX <- seq(from=-1, to >>> = 1, length = nrow(sr) +1L ) >>>> breaksY <- seq(from=-1, to >>> = 1, length = ncol(sr) + 1L) >>>> function(x,y){ # SPAGGETI CODE >>> FOR EVER >>>> indx <- >>> findInterval(x, breaksX,rightmost.closed=TRUE) >>>> indy <- >>> findInterval(y, brea...