marginalizeFactor
Syntax
Description
generates a marginal factor using the information from the specified factors and adds it to
the factor graph. The function also removes the specified factors and any nodes that, as a
result of the marginalization process, become disconnected from any factor in the factor
graph.factorID
= marginalizeFactor(fg
,factorIDs
)
[
optionally returns the IDs of any nodes that were removed by marginalizing the specified
factors.factorID
,removedNodeIDs
] = marginalizeFactor(fg
,factorIDs
)
Examples
Input Arguments
Output Arguments
Extended Capabilities
Version History
Introduced in R2025a