Fan Dan wrote: > > Generate a clustered pattern in [0; 1]2 as follows: > (a) Generate n, say 20, independent cluster centers (which can be called > parents) that are distributed i.i.d. uniformly in the unit square; > (b) then m,say 100, daughters are assigned i.i.d. uniformly to these > parents and such that each > daughter is located i.i.d. uniformly in a disk of radius r = 0:1 centred > at her parent, under the periodic boundary conditions, i.e. the square is > converted into a torus. > > I tried some but can not figure out the whole thing. > Thank you very much for your time. > Yours > Wolfgang Amadeus > >
Dear Wolfgang Amadeus, next time you post homework here, please make sure that you modify the language of the task a bit so that the discrepancy between the task and your helplessness is less evident. You really are the greatest composer on earth. Better stick with that. Josef Haydn / currently London -- View this message in context: http://n4.nabble.com/Help-tp1017274p1017423.html Sent from the R help mailing list archive at Nabble.com. ______________________________________________ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.