search for: target_vari

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

Did you mean: target_val
2010 Jul 25
1
Equivalent to go-to statement
...s a certain characteristic for each node): library(igraph) g <- watts.strogatz.game(1,100,5,0.05) z <- rlnorm(100,0,1) In Part 2 I'm iteratively changing the elements of z in order to reach a certain value of a certain target variable. I'm doing this using a while statement: while (target_variable < threshold) {## adapt z} The problem is that in some rare cases this iterative procedure can take very long (a couple of million of iterations), depending on the specific structure of the graph generated in Part 1. I therefore would like to change Part 2 of my code in the sense that once a...
2010 Jul 26
1
After writing data in MMF using SEXP structure, can i reference in R?
...ode): library(igraph) g <- watts.strogatz.game(1, 100, 5, 0.05) z <- rlnorm(100, 0, 1) In Part 2 I'm iteratively changing the elements of z in order to reach a certain value of a certain target variable. I'm doing this using a while statement: while (target_variable < threshold) {## adapt z} The problem is that in some rare cases this iterative procedure can take very long (a couple of million of iterations), depending on the specific structure of the graph generated in Part 1. I therefore would like to change Part 2 of my code...