Package org.integratedmodelling.riskwiz.pt.map

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


                SubtableFastMap2 fmap = clusterPT.createSubtableFastMap(nodePT);
                FMarginalizationMap mfmap = new FMarginalizationMap(
                        clusterPT.getDomainProduct(),
                        node.getDiscretizedDomain());
            
                FastMap2 liklihoodfmap = clusterPT.createSubtableFastMap(
                        DomainFactory.createDomainProduct(
                                node.getDiscretizedDomain()));

                clusterHash.put(node,
                        new ClusterBundle(parentCluster, fmap, mfmap,
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()));

                clusterHash.put(node,
                        new ClusterBundle(parentCluster, null, mfmap,
View Full Code Here

             * clusterPT.addUtilitySubtable(node.getTable(), bundle.fopmap); }
             */ else if (node.isDecision()) {
                ClusterBundle bundle = clusterHash.get(node);
                SJTVertex parentCluster = bundle.jtcluster;
                JTPotential clusterPT = parentCluster.getPotential();
                FastMap2 fmap = clusterPT.createSubtableFastMap(
                        decisionPotentialHash.get(node));

                clusterPT.multiplyByProbabilitySubtable(
                        decisionPotentialHash.get(node), fmap);
            }
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));
View Full Code Here

        probabilityPotential.setAll(1);
        utilityPotential = null;
    }

    public FastMap2 createSubtableFastMap(PT pt2) {
        return new FastMap2(this.domainProduct, pt2.getDomainProduct());
    }
View Full Code Here

    public DomainMap2 createSubtableDomainMap(PT pt2) {
        return new DomainMap2(this.domainProduct, pt2.getDomainProduct());
    }

    public FastMap2 createSubtableFastMap(Vector<DiscreteDomain> domainProduct) {
        return new FastMap2(this.domainProduct, domainProduct);
    }
View Full Code Here

    public DomainMap2 createSubtableDomainMap(PT pt2) {
        return new DomainMap2(this.domainProduct, pt2.domainProduct);
    }

    public FastMap2 createSubtableFastMap(Vector<DiscreteDomain> domainProduct) {
        return new FastMap2(this.domainProduct, domainProduct);
    }
View Full Code Here

TOP

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

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.