Examples of multiplyBySubtable()


Examples of org.integratedmodelling.riskwiz.pt.PT.multiplyBySubtable()

            // cross fingers
            if (bundle.liklihoodfmap instanceof SubtableFastMap2) {
                clusterPT.multiplyBySubtableFast(node.getEvidence(),
                        (SubtableFastMap2) bundle.liklihoodfmap);
            } else {
                clusterPT.multiplyBySubtable(node.getEvidence(),
                        bundle.liklihoodfmap);
            }

        }
    }
View Full Code Here

Examples of org.integratedmodelling.riskwiz.pt.PT.multiplyBySubtable()

        ClusterBundle bundle = clusterHash.get(node);
        JTVertexHugin parentCluster = bundle.jtcluster;

        PT clusterPT = parentCluster.getPt();

        clusterPT.multiplyBySubtable(node.getEvidence(), bundle.liklihoodfmap);
        unmarkAll();
        collectEvidence(parentCluster);
        unmarkAll();
        distributeEvidence(parentCluster);
    }
View Full Code Here

Examples of org.integratedmodelling.riskwiz.pt.PT.multiplyBySubtable()

            } else if (node.isUtility()) {
                ClusterBundle cbundle = clusterHash.get(node);
                SJTVertex jtcluster = cbundle.jtcluster;
                PT utility = jtcluster.getPotential().getProbabilityPotential().clone();

                utility.multiplyBySubtable(node.getDiscreteCPT(), cbundle.fopmap);
                node.setMarginalUtility(utility.sum());
            }

        }
    }
View Full Code Here

Examples of org.integratedmodelling.riskwiz.pt.PT.multiplyBySubtable()

                ClusterBundle cbundle = clusterHash.get(node);
                SJTVertex jtcluster = cbundle.jtcluster;
                PT utility = jtcluster.getPotential().getProbabilityPotential().clone();

                utility.normalize();
                utility.multiplyBySubtable(node.getDiscreteCPT(), cbundle.fopmap);
                node.setMarginalUtility(utility.sum());

            }

        }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.