TobiasMadsen / dgRaph

Discrete factor graphs in R
3 stars 2 forks source link

tailIS and kl should not require same potMap only same structure #12

Closed TobiasMadsen closed 9 years ago

TobiasMadsen commented 9 years ago

Enable comparison of two factor graphs with similar structure, but different mappings of potentials. Comparisons are performed in both tailSaddle, tailIS and kl.

Refactor the check of similar structure and generate smallest structure that captures both maps.

TobiasMadsen commented 9 years ago

Actually a remapping of factors can also occur in the facNbs list. They should contain the same elements but not necessarily in the same order