Displaying 2 results from an estimated 2 matches for "breaksx".
Did you mean:
breaks
2011 Jan 25
0
Map an Area to another
...nted so far (you can copy paste the code there is a small call of 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&l...
2011 Jan 26
0
Fwd: MAtrix addressing
....map <- function(sr){
>>>> # This function converts the s(x,y) matrix into a
>>> 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, bre...