Guest User

Untitled

a guest
Oct 18th, 2017
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.61 KB | None | 0 0
  1. R = 10.;
  2. n = 20;
  3. [Lambda] = 10.;
  4. X = RandomReal[{-R, R}, {n, 2}];
  5. F = RandomVariate[ExponentialDistribution[1], n];
  6.  
  7. [Gamma] = 0.1;
  8. [Tau] = 0.5;
  9. yy = {x, y};
  10. [Beta] = 3.;
  11. ell = x [Function] (x)^-[Beta];
  12. NN = 10^-12 8000^[Beta];
  13.  
  14. r = Table[F[[i]] ell[Norm[yy - X[[i]]]], {i, 1, n}];
  15. s = Table[ Log[r[[i]]/([Gamma] Total[Delete[r, i]] + NN)], {i, 1, n}];
  16. Show[
  17. Table[
  18. RegionPlot[
  19. s[[i]] >= Log[[Tau]],
  20. {x, -R, R}, {y, -R, R},
  21. MaxRecursion -> 5,
  22. PlotPoints -> 20,
  23. PlotStyle -> {FaceForm[{Opacity[0.5], ColorData[97][i]}]},
  24. BoundaryStyle -> ColorData[97][i]
  25. ],
  26. {i, 1, n}],
  27. Graphics[Point[X]]
  28. ]
Add Comment
Please, Sign In to add comment