Package org.integratedmodelling.riskwiz.domain

Examples of org.integratedmodelling.riskwiz.domain.IntervalDomain


        int k = productStructureIterator[0];
        DiscreteDomain ddom = dmap.getDiscretizedDomain(function.getDomain(), bn);

        if (ddom instanceof IntervalDomain) {
            IntervalDomain idom = (IntervalDomain) ddom;

            val = new Double(idom.getAvarage(k));

            volume *= idom.getWidth(k);

        } else {
            val = ddom.getState(k);

        }

        Vector<DiscreteDomain> pdoms = dmap.getDiscretizedParentDomains();
        List args = new LinkedList();

        for (int i = 1; i < productStructureIterator.length; i++) {
            int j = productStructureIterator[i];
            DiscreteDomain dpdom = pdoms.elementAt(i);

            if (dpdom instanceof IntervalDomain) {
                IntervalDomain idom = (IntervalDomain) dpdom;

                Double aval = new Double(idom.getAvarage(j));

                args.add(aval);
                volume *= idom.getWidth(j);

            } else {
                String sval = dpdom.getState(j);

                args.add(sval);
View Full Code Here


        return -1;
   
    }
 
    protected double getEvidenceAvarage(BNNode node, int evidence) {
        IntervalDomain idom = (IntervalDomain) node.getDiscretizedDomain();

        return idom.getAvarage(evidence);
    }
View Full Code Here

        return idom.getAvarage(evidence);
    }
 
    protected double getEvidenceWidth(BNNode node, int evidence) {
        IntervalDomain idom = (IntervalDomain) node.getDiscretizedDomain();

        return idom.getWidth(evidence);
    }
View Full Code Here

        return new TabularDF(dom);
    }
 
    public static TabularCPD createCPF(String name, double from, double to, int numberOfIntervals) {
        IntervalDomain dom = new IntervalDomain(name, from, to,
                numberOfIntervals);

        return new TabularCPD(dom, null);
    }
View Full Code Here

        return new TabularCPD(dom, null);
    }
 
    public static TabularDF createDF(String name, double from, double to, int numberOfIntervals) {
        IntervalDomain dom = new IntervalDomain(name, from, to,
                numberOfIntervals);

        return new TabularDF(dom);
    }
View Full Code Here

    public void setDiscretizedDomain(DiscreteDomain  dom) {
        discretizedDomain = dom;
    }
 
    public void setIntervalDomain(double from, double to, int numberOfIntervals) {
        DiscreteDomain dom = new IntervalDomain(this.name, from, to,
                numberOfIntervals);

        function.setDomain(dom);
        if (noisyT != null) {
            noisyT.setDomain(dom);
View Full Code Here

TOP

Related Classes of org.integratedmodelling.riskwiz.domain.IntervalDomain

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.