Package fuzzy4j.sets

Examples of fuzzy4j.sets.PiFunction


        assertTrue(impl.set instanceof TrapezoidalFunction);
    }

    @Test
    public void testTerm() throws Exception {
        impl = Term.term("any", new PiFunction(0, 1, 3, 1));
        assertTrue(impl.set instanceof PiFunction);

        try {
            impl = Term.term(null, new PiFunction(0, 1, 3, 1));
            fail();
        }
        catch (IllegalArgumentException e) {}

        try {
View Full Code Here


    }

    public void pifunctionExample() {

        // this type of function should have only a single max value.
        set = new PiFunction(5, 10, 15, 1);

        double res1 = Maximum.meanOfMax().apply(var, set);

        double res2 = Maximum.minOfMax().apply(var, set);
View Full Code Here

TOP

Related Classes of fuzzy4j.sets.PiFunction

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.