This repository was archived by the owner on Nov 6, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 4 files changed +19
-19
lines changed Expand file tree Collapse file tree 4 files changed +19
-19
lines changed Original file line number Diff line number Diff line change @@ -23,11 +23,11 @@ export
2323 ishomogeneous,
2424
2525 # algorithms
26- SamplingAlgorithm ,
26+ PointPatternAlgorithm ,
2727 LewisShedler,
2828
2929 # thinning methods
30- AbstractThinning ,
30+ ThinningMethod ,
3131 RandomThinning,
3232 thin
3333
Original file line number Diff line number Diff line change @@ -50,24 +50,24 @@ on geometry or domain `g`.
5050"""
5151function default_sampling_algorithm end
5252
53- # --------------------
54- # SAMPLING ALGORITHMS
55- # --------------------
53+ # -------------------------
54+ # POINT PATTERN ALGORITHMS
55+ # -------------------------
5656
5757"""
58- SamplingAlgorithm
58+ PointPatternAlgorithm
5959
60- A sampling algorithm for point processes .
60+ An algorithm for sampling point patterns .
6161"""
62- abstract type SamplingAlgorithm end
62+ abstract type PointPatternAlgorithm end
6363
6464"""
6565 LewisShedler(λmax)
6666
6767Generate sample using Lewis-Shedler algorithm (1979) with
6868maximum real value `λmax` of the intensity function.
6969"""
70- struct LewisShedler{T<: Real } <: SamplingAlgorithm
70+ struct LewisShedler{T<: Real } <: PointPatternAlgorithm
7171 λmax:: T
7272end
7373
7777Generate sample assuming the intensity is constant over a `Geometry`
7878or piecewise constant over a `Domain`.
7979"""
80- struct DiscretizedSampling <: SamplingAlgorithm end
80+ struct DiscretizedSampling <: PointPatternAlgorithm end
8181
82- struct UnionSampling <: SamplingAlgorithm end
82+ struct UnionSampling <: PointPatternAlgorithm end
8383
8484# -----------------
8585# IMPLEMENTATIONS
Original file line number Diff line number Diff line change 33# ------------------------------------------------------------------
44
55"""
6- AbstractThinning
6+ ThinningMethod
77
88A method for thinning spatial point processes and patterns.
99"""
10- abstract type AbstractThinning end
10+ abstract type ThinningMethod end
1111
1212"""
13- thin(p, t )
13+ thin(process, method )
1414
15- Thin spatial point process `p` with thinning method `t `.
15+ Thin spatial point ` process` with thinning `method `.
1616"""
1717function thin end
1818
1919"""
20- thin(pp, t )
20+ thin(pattern, method )
2121
22- Thin spatial point pattern `pp` with thinning method `t `.
22+ Thin spatial point ` pattern` with thinning `method `.
2323"""
24- thin (:: PointSet , :: AbstractThinning )
24+ thin (:: PointSet , :: ThinningMethod )
2525
2626# -----------------
2727# IMPLEMENTATIONS
Original file line number Diff line number Diff line change 77
88Random thining with retention probability `p`.
99"""
10- struct RandomThinning{P<: Union{Real,Function} } <: AbstractThinning
10+ struct RandomThinning{P<: Union{Real,Function} } <: ThinningMethod
1111 p:: P
1212end
1313
You can’t perform that action at this time.
0 commit comments