Package org.integratedmodelling.riskwiz.pt

Examples of org.integratedmodelling.riskwiz.pt.UT


    private static UT discretizeContUF(IFunction cpf, BeliefNetwork bn)
        throws Exception {
        DiscretizationDomainMap dmap = new DiscretizationDomainMap(
                cpf.getParentsDomains(), bn);
        UT uT = new UT(cpf.getDomain().getName(),
                dmap.getDiscretizedParentDomains());

        int[] productStructureIterator = uT.index2addr(0);
        boolean done = false;

        while (!done) {
            setOneOutputUTValue(productStructureIterator, uT, cpf, dmap);
            done = uT.addOne(productStructureIterator);
        }

        return uT;
    }
View Full Code Here


    }

    public static UT converttTabularToUT(TabularFunction cpf) {

        UT uT = new UT(cpf.getDomain().getName(), cpf.getParentsDomains());

        for (int i = 0; i < cpf.size(); i++) {
            double value = (Double) cpf.getValue(i);

            uT.setValue(i, value);
        }

        return uT;

    }
View Full Code Here

TOP

Related Classes of org.integratedmodelling.riskwiz.pt.UT

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.