Skip to content
This repository was archived by the owner on Nov 6, 2023. It is now read-only.

Commit 772f017

Browse files
ErickChaconjuliohm
authored andcommitted
tidy up examples
1 parent 7dfefdd commit 772f017

File tree

1 file changed

+17
-4
lines changed

1 file changed

+17
-4
lines changed

src/processes/cluster.jl

Lines changed: 17 additions & 4 deletions
Original file line numberDiff line numberDiff 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
2223
p = 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
2833
p = 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
3443
p = 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
3952
p = ClusterProcess(
4053
PoissonProcess(s -> 0.2 * sum(coordinates(s) .^ 2)),
4154
parent -> PointSet(sample(Sphere(parent, 0.1), RegularSampling(10)))

0 commit comments

Comments
 (0)