Skip to content

Commit 7cab935

Browse files
committed
change to propagateBelief
1 parent 4af111d commit 7cab935

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

src/FactorGraph.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -829,8 +829,8 @@ function doautoinit!( dfg::AbstractDFG,
829829
@info "do init of $vsym"
830830
end
831831
# FIXME ensure a product of only partial densities and returned pts are put to proper dimensions
832-
bel,inferdim = proposalBelief(dfg, vsym, useinitfct, solveKey=solveKey, logger=logger)
833-
setValKDE!(xi, pts, true, inferdim, solveKey=solveKey)
832+
bel,inferdim = propagateBelief(dfg, getVariable(dfg,vsym), getFactor.(dfg,useinitfct), solveKey=solveKey, logger=logger)
833+
setValKDE!(xi, getPoints(bel, false), true, inferdim, solveKey=solveKey)
834834
# Update the estimates (longer DFG function used so cloud is also updated)
835835
setVariablePosteriorEstimates!(dfg, xi.label, solveKey)
836836
# Update the data in the event that it's not local

src/GraphProductOperations.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ end
5050
"""
5151
$SIGNATURES
5252
53-
This is an old function that will be replace by [`propagateBelief`](@ref).
53+
This is an old function name that will be replaced by [`propagateBelief`](@ref).
5454
"""
5555
function predictbelief( dfg::AbstractDFG,
5656
destvert::DFGVariable,

test/testPartialNH.jl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,8 @@ oldBel = getBelief(fg, destlbl)
3535
oldpts = getPoints(oldBel)
3636

3737
varType = getVariableType(fg, destlbl)
38-
pGM = AMP.productbelief(oldpts, getManifold(varType), dens, 100, asPartial=false )
38+
pGM = getPoints( AMP.manifoldProduct(dens, getManifold(varType), N=100, oldPoints=oldpts), false )
39+
# pGM = AMP.productbelief(oldpts, getManifold(varType), dens, 100, asPartial=false )
3940

4041

4142
##

0 commit comments

Comments
 (0)