Package ptolemy.math.test
Class TestDoubleUnaryOperation
- java.lang.Object
-
- ptolemy.math.test.TestDoubleUnaryOperation
-
- All Implemented Interfaces:
DoubleUnaryOperation
public class TestDoubleUnaryOperation extends java.lang.Object implements DoubleUnaryOperation
A operation taking one argument of type double, and producing a value of type double. This interface attempts to mimic a first-class function of a single variable.- Since:
- Ptolemy II 2.0
- Version:
- $Id$
- Author:
- Jeff Tsay
- Pt.AcceptedRating:
- Red (ctsay)
- Pt.ProposedRating:
- Red (ctsay)
-
-
Constructor Summary
Constructors Constructor Description TestDoubleUnaryOperation()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description double
operate(double operand)
Operate on the operand, returning a value of the same type.
-
-
-
Method Detail
-
operate
public double operate(double operand)
Operate on the operand, returning a value of the same type.- Specified by:
operate
in interfaceDoubleUnaryOperation
- Parameters:
operand
- The operand.- Returns:
- The results of the operation.
-
-