Class MaxFunction

  • All Implemented Interfaces:
    BinaryFunction<java.lang.Double,​java.lang.Double,​java.lang.Double>

    public class MaxFunction
    extends java.lang.Object
    implements BinaryFunction<java.lang.Double,​java.lang.Double,​java.lang.Double>
    The maximum function.
    Author:
    Matthias Thimm
    • Constructor Summary

      Constructors 
      Constructor Description
      MaxFunction()  
    • Method Summary

      Modifier and Type Method Description
      java.lang.Double eval​(java.lang.Double val1, java.lang.Double val2)
      Evaluates the function for the given elements.
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • MaxFunction

        public MaxFunction()
    • Method Detail

      • eval

        public java.lang.Double eval​(java.lang.Double val1,
                                     java.lang.Double val2)
        Description copied from interface: BinaryFunction
        Evaluates the function for the given elements.
        Specified by:
        eval in interface BinaryFunction<java.lang.Double,​java.lang.Double,​java.lang.Double>
        Parameters:
        val1 - some element
        val2 - some element
        Returns:
        the value of the element.