
ArrayMaximum |
ptolemy.actor.lib.ArrayMaximum |
Extract the maximum element from an array. This actor reads an array
from the input port and sends the largest of its elements to the
output port. The index of the largest element is sent to the
index output port. If there is more than one entry in the array
with the maximum value, then the index of the first such entry
is what is produced.
Author(s): Mark Oliver
Version:$Id: ArrayMaximum.java,v 1.16 2005/10/28 20:14:33 cxh Exp $
Pt.Proposed Rating:Red (cxh)
Pt.Accepted Rating:Red (cxh)
index
The port producing the index of the largest element.
This is port has type int.