ptolemy.math
Interface DoubleBinaryOperation


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: DoubleBinaryOperation.java,v 1.13 2004/04/13 03:45:02 cxh Exp $
Author:
Jeff Tsay
Accepted Rating:
Red (ctsay)
Proposed Rating:
Red (ctsay)

Method Summary
 double operate(double leftOperand, double rightOperand)
          Operate on the operands, returning a value of the same type.
 

Method Detail

operate

public 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.