ArrayAverage
ptolemy.actor.lib.ArrayAverage

Compute the average of the elements in an array. This actor reads an array from the input port and sends the average of its elements to the output port. The output data type is at least the type of the elements of the input array. The elements of the input array have to support addition and division by an integer, or an exception will be thrown in the fire() method.

Author(s): Mark Oliver, Edward A. Lee
Version:$ID: ArrayAverage.java,v0.1 2003/07/01
Pt.Proposed Rating:Red (cxh)
Pt.Accepted Rating:Red (cxh)