Package fuzzy4j.util

Examples of fuzzy4j.util.SimpleInterval.max()


        List<Double> nec = new ArrayList<Double>();
        List<Double> pos = new ArrayList<Double>();

        // border cases
        updateNecPos(nec, pos, new Point(overlap.min(), A.apply(overlap.min())), B);
        updateNecPos(nec, pos, new Point(overlap.max(), A.apply(overlap.max())), B);

        for (Point p : A.points)
            updateNecPos(pos, nec, p, B);

        return new double[]{ Collections.min(nec), Collections.max(pos) };
View Full Code Here


        List<Double> nec = new ArrayList<Double>();
        List<Double> pos = new ArrayList<Double>();

        // border cases
        updateNecPos(nec, pos, new Point(overlap.min(), A.apply(overlap.min())), B);
        updateNecPos(nec, pos, new Point(overlap.max(), A.apply(overlap.max())), B);

        for (Point p : A.points)
            updateNecPos(pos, nec, p, B);

        return new double[]{ Collections.min(nec), Collections.max(pos) };
View Full Code Here

        if (overlap == null)
            return new double[]{0, 1};

        List<Double> values = new ArrayList<Double>();
        values.add(A.apply(overlap.min()));
        values.add(A.apply(overlap.max()));

        if (overlap.within(A.b))
            values.add(1.0);

        return new double[]{ Collections.min(values), Collections.max(values) };
View Full Code Here

        List<Double> nec = new ArrayList<Double>();
        List<Double> pos = new ArrayList<Double>();

        nec.add(Math.max(A.apply(overlap.min()), 1.0 - B.apply(overlap.min())));
        nec.add(Math.max(A.apply(overlap.max()), 1.0 - B.apply(overlap.max())));

        pos.add(Math.min(A.apply(overlap.min()), B.apply(overlap.min())));
        pos.add(Math.min(A.apply(overlap.max()), B.apply(overlap.max())));

        Point A_1_B_1 = A_left.intersection(B_left);
View Full Code Here

        List<Double> nec = new ArrayList<Double>();
        List<Double> pos = new ArrayList<Double>();

        nec.add(Math.max(A.apply(overlap.min()), 1.0 - B.apply(overlap.min())));
        nec.add(Math.max(A.apply(overlap.max()), 1.0 - B.apply(overlap.max())));

        pos.add(Math.min(A.apply(overlap.min()), B.apply(overlap.min())));
        pos.add(Math.min(A.apply(overlap.max()), B.apply(overlap.max())));

        Point A_1_B_1 = A_left.intersection(B_left);
View Full Code Here

        nec.add(Math.max(A.apply(overlap.min()), 1.0 - B.apply(overlap.min())));
        nec.add(Math.max(A.apply(overlap.max()), 1.0 - B.apply(overlap.max())));

        pos.add(Math.min(A.apply(overlap.min()), B.apply(overlap.min())));
        pos.add(Math.min(A.apply(overlap.max()), B.apply(overlap.max())));

        Point A_1_B_1 = A_left.intersection(B_left);
        update(A_1_B_1, overlap, nec, pos);

        Point A_1_B_2 = A_left.intersection(B_right);
View Full Code Here

        nec.add(Math.max(A.apply(overlap.min()), 1.0 - B.apply(overlap.min())));
        nec.add(Math.max(A.apply(overlap.max()), 1.0 - B.apply(overlap.max())));

        pos.add(Math.min(A.apply(overlap.min()), B.apply(overlap.min())));
        pos.add(Math.min(A.apply(overlap.max()), B.apply(overlap.max())));

        Point A_1_B_1 = A_left.intersection(B_left);
        update(A_1_B_1, overlap, nec, pos);

        Point A_1_B_2 = A_left.intersection(B_right);
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.