List of usage examples for org.apache.commons.functor BinaryFunction interface-usage
From source file org.apache.commons.functor.example.kata.one.ArithmeticOperation.java
public abstract class ArithmeticOperation implements BinaryFunction<Number, Number, Number> {
}
From source file org.apache.commons.functor.example.lines.Sum.java
/** * @version $Revision: 1345136 $ $Date: 2012-06-01 09:47:06 -0300 (Fri, 01 Jun 2012) $ */ public class Sum implements BinaryFunction<Number, Number, Integer> { public Integer evaluate(Number left, Number right) { return left.intValue() + right.intValue();
From source file fuzzy.util.MaxMF.java
/**
* Gets the maximum values of a membership function applied over a collection.
* Returns a map which the key is the the crisp value and the value its
* fuzzy value.
*
* @param <T> numeric type