search for: n_daughters

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

Did you mean: n_daughter
2017 Nov 09
2
R-help
...ius=3, centre=c(0,0)) i <- 1 while(i <= n_daughter){ d_x <- runif(1) d_y <- runif(1) if (d_x ^2+d_y^2 <r) { i = i+1}} #need a condition here such that (d_x,d_y) lies in B(0,r) #where B(0,r) is a ball of center origin and of radius r In above we should obtain one ball with n_daughters. Next step is to generate parent centers and distribute the n_daughters in the ball into n_parents. [[alternative HTML version deleted]]
2017 Nov 09
0
R-help
...gt; d_x <- runif(1) > > d_y <- runif(1) > > if (d_x ^2+d_y^2 <r) { > > i = i+1}} > > > #need a condition here such that (d_x,d_y) lies in B(0,r) > > #where B(0,r) is a ball of center origin and of radius r > > In above we should obtain one ball with n_daughters. Next step is to generate > parent centers and distribute the n_daughters in the ball into n_parents. > > [[alternative HTML version deleted]] > > ______________________________________________ > R-help at r-project.org mailing list -- To UNSUBSCRIBE and more, see > https...