Skip to content

Commit da9b9ce

Browse files
committed
Minor restructuration: add common.jl
1 parent 973aa2e commit da9b9ce

File tree

3 files changed

+16
-5
lines changed

3 files changed

+16
-5
lines changed

Project.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,10 @@ LazySets = "b4f0291d-fe17-52bc-9479-3d1a343d9043"
1212
LightGraphs = "093fc24a-ae57-5d10-9952-331d41423f4d"
1313
LinearAlgebra = "37e2e46d-f89d-539d-b4ee-838fcccc9c8e"
1414
Plots = "91a5bcdd-55d7-5caf-9e0b-520d859cae80"
15+
RCall = "6f49c342-dc21-5d91-9882-a32aef131414"
1516
Random = "9a3f8284-a2c9-5f02-9a11-845980a1fd5c"
1617
SimpleWeightedGraphs = "47aef6b3-ad0c-573a-a1e2-d07658019622"
18+
SpecialFunctions = "276daf66-3868-5448-9aa4-cd146d93841b"
1719

1820
[compat]
1921
julia = ">= 1.5"

src/PartialRejectionSampling.jl

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,10 @@ using Distances
1818
using LazySets
1919
const LS = LazySets
2020

21-
abstract type AbstractPointProcess{T} end
22-
Base.eltype(pp::AbstractPointProcess{T}) where {T} = T
23-
abstract type AbstractSpatialPointProcess{T<:Vector} <: AbstractPointProcess{T} end
24-
abstract type AbstractGraphPointProcess{T} <: AbstractPointProcess{T} end
21+
using SpecialFunctions
22+
const SF = SpecialFunctions
2523

26-
function generate_sample end
24+
include("common.jl")
2725

2826
include("utils.jl")
2927
include("window.jl")

src/common.jl

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
abstract type AbstractPointProcess{T} end
2+
Base.eltype(pp::AbstractPointProcess{T}) where {T} = T
3+
4+
abstract type AbstractSpatialPointProcess{T<:Vector{Float64}} <: AbstractPointProcess{T} end
5+
6+
window(pp::AbstractSpatialPointProcess) = pp.window
7+
dimension(pp::AbstractSpatialPointProcess) = dimension(window(pp))
8+
9+
abstract type AbstractGraphPointProcess{T} <: AbstractPointProcess{T} end
10+
11+
function generate_sample end

0 commit comments

Comments
 (0)