Package net.fortytwo.twitlogic.proof

Examples of net.fortytwo.twitlogic.proof.NodeSetList


        for (WeightedValue<Resource> v : resultMatrix.columnNorm().normalize().toSortedArray()) {
            if (++i > maxAnswers) {
                break;
            }

            NodeSetList nsList = null;
            int j = 0;
            for (WeightedValue<Resource> v2 : resultMatrix.getRow(v.value).normalize().toSortedArray()) {
                if (++j > maxJustifications) {
                    break;
                }

                NodeSet ns = new NodeSet(v2.value, (float) v2.weight, new AssumptionStep(context), context);
                // FIXME: these will be in reverse order of weight, which is counterintuitive
                nsList = new NodeSetList(ns, nsList, context);
            }

            InferenceStep infStep = new InferenceStep(rule, nsList, context);
            NodeSet ns = new NodeSet(v.value, (float) v.weight, infStep, context);
            answers.add(ns);
View Full Code Here

TOP

Related Classes of net.fortytwo.twitlogic.proof.NodeSetList

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.