MaxMethod.java

package libai.fuzzy.operators;

/**
 * Created by kronenthaler on 08/05/2017.
 */
public class MaxMethod extends OrMethod {

    @Override
    public double eval(double a, double b) {
        return Math.max(a, b);
    }

    @Override
    public double neutral() {
        return 0;
    }

    @Override
    public String toString() {
        return "MAX";
    }
}