Package org.integratedmodelling.riskwiz.pt.map

Examples of org.integratedmodelling.riskwiz.pt.map.FMarginalizationMap


                JTVertexHugin parentCluster = assignParentCluster(node);

                PT clusterPT = parentCluster.getPt();
                PT nodePT = node.getDiscreteCPT();
                SubtableFastMap2 fmap = clusterPT.createSubtableFastMap(nodePT);
                FMarginalizationMap mfmap = new FMarginalizationMap(
                        clusterPT.getDomainProduct(),
                        node.getDiscretizedDomain());
            
                FastMap2 liklihoodfmap = clusterPT.createSubtableFastMap(
                        DomainFactory.createDomainProduct(
View Full Code Here


        // System.out.println("was \n"+ sepsetPT.toString());

        PT oldSepsetPT = sepsetPT.clone();
        PT sourcePT = source.getPt();

        FMarginalizationMap mmap = source.getFMarginalizationMap(jtedge);

        PT.marginalizeDomainsFast(sepsetPT, sourcePT, mmap);
     
        // System.out.println("become \n"+ sepsetPT.toString());
        PT targetPT = target.getPt();
View Full Code Here

        for (BNNode node : bNNodes) {
            if (node.isNature()) {
                ClusterBundle cbundle = clusterHash.get(node);
                JTVertexHugin jtcluster = cbundle.jtcluster;
                FMarginalizationMap mfmap = cbundle.mfmap;
                PT marginal = new PT(mfmap.getProjectionDomainProduct());

                PT.marginalizeDomainsFast(marginal, jtcluster.getPt(), mfmap);
                // MarginalizationDomainMap mfmap = cbundle.mfmap;
                // node.setMarginal(PT.marginalizeDomains(jtcluster.getPt(),
                // mfmap));
View Full Code Here

        for (BNNode node : bNNodes) {
            if (node.isNature()) {
                ClusterBundle cbundle = clusterHash.get(node);
                JTVertexHugin jtcluster = cbundle.jtcluster;
                FMarginalizationMap mfmap = cbundle.mfmap;

                PT marginal = new PT(mfmap.getProjectionDomainProduct());

                PT.marginalizeDomainsFast(marginal, jtcluster.getPt(), mfmap);
                // MarginalizationDomainMap mfmap = cbundle.mfmap;
                // PT marginal = PT.marginalizeDomains(jtcluster.getPt(),
                // mfmap);
View Full Code Here

    public void createFMarginalizationMap(JTEdgeHugin jtedge) {
    
        // Vector<DiscreteDomain> domainProduct = pT.getDomainProduct() ;   
        // Vector<DiscreteDomain> sepsetDomainProduct = jtedge.getPt().getDomainProduct() ;
    
        FMarginalizationMap mmap = new FMarginalizationMap(pT.getDomainProduct(),
                jtedge.getPt().getDomainProduct());

        margMapHash.put(jtedge, mmap);
    }
View Full Code Here

                domsSet.add(first.getDiscretizedDomain());
                marginals.remove(first);
            }
            if (!domsSet.isEmpty()) {
        
                FMarginalizationMap mmap = new FMarginalizationMap(
                        currentDomainProduct, domsSet);

                mmaps.add(mmap);
                currentDomainProduct.removeAll(domsSet);
            }
View Full Code Here

    public void createMarginalizationFastMapPN(SJTEdge  jtedge) {
    
        Vector<DiscreteDomain> domainProduct = potential.getDomainProduct();   
        Vector<DiscreteDomain> sepsetDomainProduct = jtedge.getPotential().getDomainProduct();
    
        FMarginalizationMap mmap = new FMarginalizationMap(
                potential.getDomainProduct(), sepsetDomainProduct);

        margMapHashPN.put(jtedge, mmap);
    }
View Full Code Here

            if (node.isNature()) {

                JTPotential clusterPT = parentCluster.getPotential();
                PT nodePT = node.getDiscreteCPT();
                FastMap2 fmap = clusterPT.createSubtableFastMap(nodePT);
                FMarginalizationMap mfmap = clusterPT.createFMarginalizationMap(
                        node.getDiscretizedDomain());
                FastMap2 liklihoodfmap = clusterPT.createSubtableFastMap(
                        DomainFactory.createDomainProduct(
                                node.getDiscretizedDomain()));

                clusterHash.put(node,
                        new ClusterBundle(parentCluster, fmap, mfmap,
                        liklihoodfmap));
            } else if (node.isUtility()) {
                JTPotential clusterPT = parentCluster.getPotential();
                Vector<DiscreteDomain> parentDomains = node.getDiscreteCPT().getParentsDomains();
                FastMap2 fmap = clusterPT.createSubtableFastMap(parentDomains);
                FMarginalizationMap mfmap = clusterPT.createFMarginalizationMap(
                        node.getDiscreteCPT().getParentsDomains());

                clusterHash.put(node,
                        new ClusterBundle(parentCluster, fmap, mfmap, null));
            } else if (node.isDecision()) {

                JTPotential clusterPT = parentCluster.getPotential();
                // PT nodePT = decisionPotentialHash.get(node);
                // FastMap2 fmap = clusterPT.createSubtableFastMap(nodePT);
                FMarginalizationMap mfmap = clusterPT.createFMarginalizationMap(
                        node.getDiscretizedDomain());
                FastMap2 liklihoodfmap = clusterPT.createSubtableFastMap(
                        DomainFactory.createDomainProduct(
                                node.getDiscretizedDomain()));
View Full Code Here

        PT sepsetPT = jtedge.getPotential().getProbabilityPotential();

        PT oldSepsetPT = sepsetPT.clone();
        PT sourcePT = source.getPotential().getProbabilityPotential();

        FMarginalizationMap mmap = source.getFMarginalizationMapPN(jtedge);

        PT.marginalizeDomainsFast(sepsetPT, sourcePT, mmap);

        PT targetPT = target.getPotential().getProbabilityPotential();
View Full Code Here

        for (BNNode node : bNNodes) {
            if (node.isNature() || node.isDecision()) {
                ClusterBundle cbundle = clusterHash.get(node);
                SJTVertex jtcluster = cbundle.jtcluster;
                FMarginalizationMap mfmap = cbundle.mfmap;
                PT marginal = new PT(mfmap.getProjectionDomainProduct());

                PT.marginalizeDomainsFast(marginal,
                        jtcluster.getPotential().getProbabilityPotential(),
                        mfmap);
                node.setMarginal(marginal);
View Full Code Here

TOP

Related Classes of org.integratedmodelling.riskwiz.pt.map.FMarginalizationMap

Copyright © 2018 www.massapicom. 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.