362
362
end
363
363
364
364
# ######## Ageing the GBP update ##########
365
- @inline function ageingInference! (gbp:: GraphicalModel ; factor = 0 :: Int64 , variance = 0 , model = 0 , a = 0 , b = 0 , limit = 0 , iterate = 0 )
365
+ @inline function ageingInference! (gbp:: GraphicalModel ; factor = 0 :: Int64 , variance = 0 , model = 0 :: Int64 , a = 0 , b = 0 , limit = 0 , iterate = 0 )
366
366
if gbp. system. variance[factor] < limit
367
367
if (gbp. system. jacobianTranspose. colptr[factor + 1 ] - gbp. system. jacobianTranspose. colptr[factor]) == 1
368
368
idx = gbp. system. jacobianTranspose. colptr[factor]
397
397
end
398
398
399
399
# ######## Freeze factor node ##########
400
- function freezeFactor! (gbp; factor = 0 )
400
+ function freezeFactor! (gbp; factor = 0 :: Int64 )
401
401
if factor == 0
402
402
error (" The keyword factor is missing." )
403
403
elseif factor > gbp. graph. Nfactor
@@ -424,7 +424,7 @@ function freezeFactor!(gbp; factor = 0)
424
424
end
425
425
426
426
# ######## Defreeze factor node ##########
427
- function defreezeFactor! (gbp; factor = 0 )
427
+ function defreezeFactor! (gbp; factor = 0 :: Int64 )
428
428
if factor == 0
429
429
error (" The keyword factor is missing." )
430
430
elseif factor > gbp. graph. Nfactor
@@ -458,7 +458,7 @@ function defreezeFactor!(gbp; factor = 0)
458
458
end
459
459
460
460
# ######## Freeze variable node ##########
461
- function freezeVariable! (gbp; variable = 0 )
461
+ function freezeVariable! (gbp; variable = 0 :: Int64 )
462
462
if variable == 0
463
463
error (" The keyword variable is missing." )
464
464
elseif variable > gbp. graph. Nvariable
@@ -480,7 +480,7 @@ function freezeVariable!(gbp; variable = 0)
480
480
end
481
481
482
482
# ######## Defreeze variable node ##########
483
- function defreezeVariable! (gbp; variable = 0 )
483
+ function defreezeVariable! (gbp; variable = 0 :: Int64 )
484
484
if variable == 0
485
485
error (" The keyword variable is missing." )
486
486
elseif variable > gbp. graph. Nvariable
0 commit comments