I have to generate N random points (i) inside a rectangle (side a x a ) For an unstructured distribution of points, I have a typical point (i) and (ij) a group of points nearest the point (i) (ij is the supporting points of the point i). (xi , yi) and (xij , yij) are the Cartesian coordinates of the point i and ij, respectively. How can I generate m supporting points (ij) of each node (i) with (i=1,2,.....N) ? The radius d(i) of the supporting region associated to the node (i) is calculated :
d(i)=max(sqrt((xij-xi)^2 + (yij-yi)^2))*1.2 for j = 1,2, ..., m i = 1,2, ..., N
If anyone has a sample code or can help me with this, thanks so much for the hep !