I am looking to simulate a Boolean model with specified Poisson point process.
λ = 50;
pts = RandomPoint[
Rectangle[],
RandomVariate[PoissonDistribution[λ*Integrate[1, {x, y} ∈ R]]]
];
Show[RegionPlot[Rectangle[]], Graphics[Point[pts]]]
Now I am trying to attach the grains using properties of an independently marked point process, so my attempt at a new code is now:
first attempt:
λ = 50; n = 50;
pts = RandomPoint[Rectangle[],
RandomVariate[
PoissonDistribution[λ*Integrate[1, {x, y} ∈ R]]*
UniformDistribution[n*{x, y} ∈ R]]];
Show[RegionPlot[Rectangle[]], Graphics[Point[pts]]]
second attempt:
λ = 50; r = UniformDistribution[];
pts = RandomPoint[
Rectangle[],
RandomVariate[PoissonDistribution[λ*Integrate[1, {x, y} ∈ R]]]
];
Show[RegionPlot[Rectangle[]], Graphics[Circle[pts,r]]]
Neither of which work. I was hoping to be able to nest already built in functions, as my pure function writing skills aren't that good. My idea was that the independently marked p.p. is the product of the spacial p.p. times the distribution of the associated marks:
$\tilde{Φ}_{x_i,Ξ_i} = Φ_{x_i}*F(Ξ_i)$
Where the associated marks are the grains of the BM that are random closed circles $Ξ(m)=B_{x_i}(m)$ with random radius m, centered at the each point $x_i$.