@Override
    public VarTensor getMarginals(Factor factor) {
        VarTensor marg = getFactorBeliefs(factor);
        marg = ensureRealSemiring(marg);
        return marg;
    }
@ Override public VarTensor getMarginals ( Factor factor ) { VarTensor marg = getFactorBeliefs ( factor ) ; marg = ensureRealSemiring ( marg ) ; return marg ; }
@inheritDoc