Displaying 2 results from an estimated 2 matches for "range_count".
Did you mean:
rangecount
2008 Oct 27
1
Problem with script
...}
# Define vectors x_list and y_list
x_list <- matrix(0, nrow=range_size, ncol=1)
y_list <- matrix(0, nrow=range_size, ncol=1)
x_list[1] <- initial_point[1]
y_list[1] <- initial_point[2]
# Range counter
range_counter <- 1
flag <- 0
while (range_counter < range_size){
random_sq <- round((runif(1) * range_counter ) + 1)
flag <- 0
while (flag == 0) {
if(random_matrix[x_list[random_sq]-1, y_list[random_sq]]== 0 ||
random_matrix[x_list[random_sq] + 1, y_list[random_sq]] ==...
2008 Oct 27
1
Problem with script,
I?m sorry, in my last email I forgot to attach the data I?m using wich
is a matrix of 175x175 filled with 0?s and 1?s
0 is the sea
1 is the continental land
The script is area.r
Thank you very much.
Carlos L?pez
--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
-------------- next part --------------
An embedded and