Package JSci.maths.vectors

Examples of JSci.maths.vectors.DoubleVector


        if (szArr != this.getDataSize())
            throw new IllegalArgumentException("FourierSineTransform#transform() - array size #= " + this.getDataSize());
       
       
        // Perform the transform
        AbstractDoubleVector    vecTrans = this.matKer.multiply(new DoubleVector(arrFunc));
        double[]                arrTrans = new double[szArr];
       
       
        // Unpack the results and return them
        for (int index=0; index<szArr; index++) {
View Full Code Here


     * @param arrTarg  target vector function
     *
     * @return          ||arrFunc1 - arrFunc2||<sub>2</sub>/||arrTarg||<sub>2</sub>
     */
    public static double  compError(final double[] arrFunc, final double[] arrTarg) {
        DoubleVector    vecFunc = new DoubleVector(arrFunc);
        DoubleVector    vecTarg = new DoubleVector(arrTarg);
       
        double      dblDis = vecFunc.subtract(vecTarg).norm();

        return dblDis/vecTarg.norm();
    }
View Full Code Here

TOP

Related Classes of JSci.maths.vectors.DoubleVector

Copyright © 2018 www.massapicom. 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.