Package ptolemy.math

Interface DoubleBinaryOperation

  • All Known Implementing Classes:
    TestDoubleBinaryOperation

    public interface DoubleBinaryOperation
    A operation taking two operands of type double, and producing a value of type double. This interface attempts to mimic a first-class function of two variables.
    Since:
    Ptolemy II 1.0
    Version:
    $Id$
    Author:
    Jeff Tsay
    Pt.AcceptedRating:
    Red (ctsay)
    Pt.ProposedRating:
    Red (ctsay)
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      double operate​(double leftOperand, double rightOperand)
      Operate on the operands, returning a value of the same type.
    • Method Detail

      • operate

        double operate​(double leftOperand,
                       double rightOperand)
        Operate on the operands, returning a value of the same type. Note that the operation need not be commutative.
        Parameters:
        leftOperand - The left operand.
        rightOperand - The right operand.
        Returns:
        The results of the operation