This repository was archived by the owner on Nov 6, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +17
-4
lines changed Expand file tree Collapse file tree 1 file changed +17
-4
lines changed Original file line number Diff line number Diff line change @@ -17,25 +17,38 @@ parent point and returns a geometry or domain for the offspring process.
1717
1818## Examples
1919
20+ Matern cluster process:
21+
2022```julia
21- # Matern cluster process
2223p = ClusterProcess(
2324 PoissonProcess(1),
2425 PoissonProcess(1000),
2526 parent -> Ball(parent, 0.2)
2627)
27- # Inhomogenegeous parent process with fixed number of offsprings
28+ ```
29+
30+ Inhomogenegeous parent process with fixed number of offsprings:
31+
32+ ```julia
2833p = ClusterProcess(
2934 PoissonProcess(s -> 1 * sum(coordinates(s) .^ 2)),
3035 BinomialProcess(100),
3136 parent -> Ball(parent, 0.2)
3237)
33- # Inhomogenegeous parent process and inhomogeneneous offspring process
38+ ```
39+
40+ Inhomogenegeous parent process and inhomogeneneous offspring process:
41+
42+ ```julia
3443p = ClusterProcess(
3544 PoissonProcess(s -> 0.1 * sum(coordinates(s) .^ 2)),
3645 parent -> rand(PoissonProcess(x -> 5000 * sum((x - parent).^2)), Ball(parent, 0.5))
3746)
38- # Inhomogenegeous parent process and regularsampling
47+ ```
48+
49+ Inhomogenegeous parent process and regularsampling:
50+
51+ ```julia
3952p = ClusterProcess(
4053 PoissonProcess(s -> 0.2 * sum(coordinates(s) .^ 2)),
4154 parent -> PointSet(sample(Sphere(parent, 0.1), RegularSampling(10)))
You can’t perform that action at this time.
0 commit comments