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

Commit d8889d7

Browse files
committed
Specialize union of Poisson process
1 parent 08921ac commit d8889d7

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/processes/poisson.jl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,3 +27,5 @@ function rand_single(p::PoissonProcess, r::RectangleRegion{T,N}) where {N,T}
2727
# return point pattern
2828
PointPattern(rand(U, n))
2929
end
30+
31+
Base.union(p₁::PoissonProcess, p₂::PoissonProcess) = PoissonProcess(p₁.λ + p₂.λ)

0 commit comments

Comments
 (0)