Class Slicer

  • All Implemented Interfaces:
    java.lang.Cloneable, Actor, Executable, FiringsRecordable, Initializable, TypedActor, Changeable, Debuggable, DebugListener, Derivable, Instantiable, ModelErrorHandler, MoMLExportable, Moveable, Nameable

    public class Slicer
    extends Transformer
    The Slicer functions as a decoder of the LineCoder. The parameter table and wordLength has the same meaning as in LineCoder, except that the type of table is constrained to an ArrayToken of complex numbers. On each firing, the Slicer consumes one complex token from its input port and computes the Euclidean distance between the input data and the elements in the Slicer. The actor produces wordLength booleans on each firing. The values of these booleans correspond to the index of the entry that minimizes the distance. For example, if the first entry minimizes the distance, then all of these values are false. If the second entry minimizes the distance, then only the first boolean is true.
    Since:
    Ptolemy II 4.0
    Version:
    $Id$
    Author:
    Ye Zhou
    Pt.AcceptedRating:
    Red (cxh)
    Pt.ProposedRating:
    Red (zhouye)