Package org.integratedmodelling.riskwiz.pt

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


                PT.marginalizeDomainsFast(marginal, jtcluster.getPt(), mfmap);
                // MarginalizationDomainMap mfmap = cbundle.mfmap;
                // PT marginal = PT.marginalizeDomains(jtcluster.getPt(),
                // mfmap);
                marginal.normalize();
                node.setMarginal(marginal);
            }

        }
    }
View Full Code Here


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

                PT.marginalizeDomainsFast(likelihood,
                        jtcluster.getPotential().getProbabilityPotential(),
                        mfmap);
                likelihood.normalize();
                node.setMarginal(likelihood);
            } else if (node.isUtility()) {
                ClusterBundle cbundle = clusterHash.get(node);
                SJTVertex jtcluster = cbundle.jtcluster;
                PT utility = jtcluster.getPotential().getProbabilityPotential().clone();
View Full Code Here

            } else if (node.isUtility()) {
                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

                for (int j = 0; j < counter.length; j++) {
                    double val = counter[j];

                    marginal.setValue(j, val);
                }
                marginal.normalize();
                node.setMarginal(marginal);
            }
        }
    }
View Full Code Here

                for (int j = 0; j < counter.length; j++) {
                    double val = counter[j];

                    marginal.setValue(j, val);
                }
                marginal.normalize();
                node.setMarginal(marginal);
            }
        }
    }
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.