Skip to content

Commit

Permalink
new version
Browse files Browse the repository at this point in the history
  • Loading branch information
mcosovic committed Aug 27, 2021
1 parent 0b1827d commit 930496a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion Project.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name = "GaussBP"
uuid = "7e9f8bf2-99af-4218-abca-a9d13ed0f79b"
authors = ["Mirsad Cosovic <[email protected]>"]
version = "0.0.6"
version = "0.0.7"

[deps]
Distributed = "8ba89e20-285c-5b6f-9357-94700520ee1b"
Expand Down
10 changes: 5 additions & 5 deletions src/gbp.jl
Original file line number Diff line number Diff line change
Expand Up @@ -362,7 +362,7 @@ end
end

######### Ageing the GBP update ##########
@inline function ageingInference!(gbp::GraphicalModel; factor = 0::Int64, variance = 0, model = 0, a = 0, b = 0, limit = 0, iterate = 0)
@inline function ageingInference!(gbp::GraphicalModel; factor = 0::Int64, variance = 0, model = 0::Int64, a = 0, b = 0, limit = 0, iterate = 0)
if gbp.system.variance[factor] < limit
if (gbp.system.jacobianTranspose.colptr[factor + 1] - gbp.system.jacobianTranspose.colptr[factor]) == 1
idx = gbp.system.jacobianTranspose.colptr[factor]
Expand Down Expand Up @@ -397,7 +397,7 @@ end
end

######### Freeze factor node ##########
function freezeFactor!(gbp; factor = 0)
function freezeFactor!(gbp; factor = 0::Int64)
if factor == 0
error("The keyword factor is missing.")
elseif factor > gbp.graph.Nfactor
Expand All @@ -424,7 +424,7 @@ function freezeFactor!(gbp; factor = 0)
end

######### Defreeze factor node ##########
function defreezeFactor!(gbp; factor = 0)
function defreezeFactor!(gbp; factor = 0::Int64)
if factor == 0
error("The keyword factor is missing.")
elseif factor > gbp.graph.Nfactor
Expand Down Expand Up @@ -458,7 +458,7 @@ function defreezeFactor!(gbp; factor = 0)
end

######### Freeze variable node ##########
function freezeVariable!(gbp; variable = 0)
function freezeVariable!(gbp; variable = 0::Int64)
if variable == 0
error("The keyword variable is missing.")
elseif variable > gbp.graph.Nvariable
Expand All @@ -480,7 +480,7 @@ function freezeVariable!(gbp; variable = 0)
end

######### Defreeze variable node ##########
function defreezeVariable!(gbp; variable = 0)
function defreezeVariable!(gbp; variable = 0::Int64)
if variable == 0
error("The keyword variable is missing.")
elseif variable > gbp.graph.Nvariable
Expand Down

0 comments on commit 930496a

Please sign in to comment.