AbsoluteValue
ptolemy.actor.lib.AbsoluteValue

Produce an output token on each firing with a value that is equal to the absolute value of the input. The input can have any scalar type. If the input type is not Complex, the output has the same type as the input. If the input type is Complex, the output type is Double, in which case, the output value is the magnitude of the input complex.

Author(s): Edward A. Lee
Version:$Id: AbsoluteValue.java,v 1.47 2005/10/28 20:14:28 cxh Exp $
Pt.Proposed Rating:Yellow (eal)
Pt.Accepted Rating:Yellow (yuhong)