Full Library / Math Operator / Math and Trig / Maximum
Block Name: Maximum
Code File Location: VisualSim/actor/lib/Maximum
Block Overview
- Read at most one token from each input channel and broadcast the one with the greatest value to the maximumValue output. In addition, broadcast the channel number of the maximum on the channelNumber output port. Either output port may be left unconnected if you do not need its results (this is why these are multiports). This actor works with any scalar token. For ComplexToken, the output is the one with the maximum magnitude. The input port is a multiport.
input
public TypedIOPort input
- The input port. This base class imposes no type constraints except that the type of the input cannot be greater than the type of the maximumValue output.
maximumValue
public TypedIOPort maximumValue
- The output port for the maximum value. The type of this output is constrained to be at most a scalar.
channelNumber
public TypedIOPort channelNumber
- The output port for the channel number. The type of this output is an integer.
Created with the Personal Edition of HelpNDoc: Easily create EBooks