Skip to content

Commit 973aa2e

Browse files
committed
Add LazySets, do not track .pdf
1 parent 1b3c06e commit 973aa2e

File tree

5 files changed

+8
-5
lines changed

5 files changed

+8
-5
lines changed

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
my_notes.md
22

3+
*.pdf
4+
35
# MacOS files
46
*.DS_Store
5-
67
# Jupyter files
78
*.ipynb_checkpoints
89

Project.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ Colors = "5ae59095-9a9b-59fe-a467-6f913c188581"
88
Distances = "b4f34e82-e78d-54a5-968a-f98e89d6e8f7"
99
Distributions = "31c24e10-a181-5473-b8eb-7969acd0382f"
1010
GraphPlot = "a2cc645c-3eea-5389-862e-a155d0052231"
11+
LazySets = "b4f0291d-fe17-52bc-9479-3d1a343d9043"
1112
LightGraphs = "093fc24a-ae57-5d10-9952-331d41423f4d"
1213
LinearAlgebra = "37e2e46d-f89d-539d-b4ee-838fcccc9c8e"
1314
Plots = "91a5bcdd-55d7-5caf-9e0b-520d859cae80"

src/PartialRejectionSampling.jl

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,9 @@ using Plots, GraphPlot, Colors
1515

1616
using Distances
1717

18+
using LazySets
19+
const LS = LazySets
20+
1821
abstract type AbstractPointProcess{T} end
1922
Base.eltype(pp::AbstractPointProcess{T}) where {T} = T
2023
abstract type AbstractSpatialPointProcess{T<:Vector} <: AbstractPointProcess{T} end
@@ -46,5 +49,4 @@ include("pattern_free_string.jl")
4649
# Display
4750
include("display.jl")
4851

49-
5052
end

src/rooted_spanning_forest.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ function RootedSpanningForest(
99
graph::LG.SimpleGraph{T},
1010
roots::Union{Nothing,T,AbstractVector{T},AbstractSet{T}}=nothing
1111
) where {T<:Integer}
12-
roots_ = roots === nothing ? rand(1:LG.nv(graph)) : roots
13-
return RootedSpanningForest{LG.SimpleDiGraph{T}}(graph, Set(roots_))
12+
roots_ = Set(roots === nothing ? rand(1:LG.nv(graph)) : roots)
13+
return RootedSpanningForest{LG.SimpleDiGraph{T}}(graph, roots_)
1414
end
1515

1616
"""

src/strauss.jl

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,6 @@ end
5555
upper_bound_papangelou_conditional_intensity(strauss::StraussPointProcess) = strauss.β
5656

5757
# Used in grid Partial Rejection Sampling, see grid_prs.jl
58-
5958
function gibbs_interaction(
6059
strauss::StraussPointProcess{T},
6160
cell_i::SpatialCellGridPRS{T},

0 commit comments

Comments
 (0)