Examples of complexValue()


Examples of ptolemy.data.ComplexToken.complexValue()

        // the input is complex.
        for (int i = _numberOfLags - 1 - notSymmetric; i >= 0; i--) {
            if (complex) {
                ComplexToken candidate = (ComplexToken) _outputs[(2 * (_numberOfLags - notSymmetric))
                        - i];
                _outputs[i] = new ComplexToken(candidate.complexValue()
                        .conjugate());
            } else {
                _outputs[i] = _outputs[(2 * (_numberOfLags - notSymmetric)) - i];
            }
        }
View Full Code Here

Examples of ptolemy.data.ComplexToken.complexValue()

            }
        }
        for (int i = _numberOfLags - 1-notSymmetric; i >= 0; i--) {
            if (complex) {
                ComplexToken candidate = (ComplexToken)_outputs[(2 * (_numberOfLags - notSymmetric)) - i];
                $ASSIGN$_outputs(i, new ComplexToken(candidate.complexValue().conjugate()));
            } else {
                $ASSIGN$_outputs(i, _outputs[(2 * (_numberOfLags - notSymmetric)) - i]);
            }
        }
        output.broadcast(new ArrayToken($BACKUP$_outputs()));
View Full Code Here

Examples of ptolemy.data.ComplexToken.complexValue()

                // Try to create a new [complex] type with just one member.
                // The following conversion will fail if the member cannot
                // be converted to an int.
                ComplexToken singleMember = ComplexToken.convert(token);
                Complex[][] matrix = new Complex[1][1];
                matrix[0][0] = singleMember.complexValue();
                return new ComplexMatrixToken(matrix);
            }

        }
    }
View Full Code Here

Examples of ptolemy.data.ComplexToken.complexValue()

    public void fire() throws IllegalActionException {
        super.fire();

        ComplexToken inputToken = ((ComplexToken) input.get(0));
        int index = 0;
        double distance = _computeEuclideanDistance(_table[0], inputToken
                .complexValue());

        for (int i = 1; i < _size; i++) {
            double tempDistance = _computeEuclideanDistance(_table[i],
                    inputToken.complexValue());
View Full Code Here

Examples of ptolemy.data.ComplexToken.complexValue()

        double distance = _computeEuclideanDistance(_table[0], inputToken
                .complexValue());

        for (int i = 1; i < _size; i++) {
            double tempDistance = _computeEuclideanDistance(_table[i],
                    inputToken.complexValue());

            if (tempDistance < distance) {
                index = i;
                distance = tempDistance;
            }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.