Package JSci.maths.vectors

Examples of JSci.maths.vectors.AbstractComplexVector


       
       
        // Perform the transform
        double[]                arrZero = this.createZeroFunction(this.getDataSize());
        ComplexVector           vecFunc = new ComplexVector(arrFunc, arrZero);
        AbstractComplexVector   vecTrans = this.matKerFwd.multiply(vecFunc);
       
        return vecTrans;
    }
View Full Code Here


                          + this.getDataSize()
                          );
       
       
        // Perform the transform
        AbstractComplexVector   vecFunc = this.matKerInv.multiply(vecTrans);

       
        // Unpack result and return it
        double[]    arrFunc = new double[szArr];
        for (int index=0; index<szArr; index++)
            arrFunc[index] = vecFunc.getRealComponent(index);
       
        return arrFunc;
    }
View Full Code Here

     * @return          discrete power spectrum of given function
     *
     * @throws IllegalArgumentException     invalid function dimension
     */
    public double[] powerSpectrum(final double[] arrFunc) throws IllegalArgumentException {
        AbstractComplexVector   vecSpec = this.transform(arrFunc);
       
        double[]    arrSpec = new double[this.getDataSize()];
        for (int index=0; index<this.getDataSize(); index++)    {
            Complex cpxVal = vecSpec.getComponent(index);
            arrSpec[index] = cpxVal.modSqr();
        }

        return arrSpec;
    }
View Full Code Here

        this.checkFunction(arrFunc);
        this.checkFrequency(intFreq);
       
        // Transform function to frequency domain then remove components greater than cutoff
        int                     iFreqMax = this.getMaximumFrequency();
        AbstractComplexVector   vecTrans = this.getTranformer().transform(arrFunc);
       
        for (int index=intFreq+1; index<iFreqMax; index++)
            this.clearFreqComponent(index, vecTrans);

//        // Correct the phasing
View Full Code Here

        // Check arguments
        this.checkFunction(arrFunc);
        this.checkFrequency(intFreq);
       
        // Transform function to frequency domain then remove components less than cutoff
        AbstractComplexVector   vecTrans = this.getTranformer().transform(arrFunc);
       
        for (int index=0; index<intFreq; index++)   
            this.clearFreqComponent(index, vecTrans);

        // Transform back to time domain and return
View Full Code Here

        this.checkFrequency(intFreqLow);
        this.checkFrequency(intFreqHigh);
       
        // Transform function to frequency domain then remove components greater than cutoff
        int                     intFreqMax = this.getMaximumFrequency();
        AbstractComplexVector   vecTrans = this.getTranformer().transform(arrFunc);
       
        for (int index=0; index<intFreqLow; index++)    // remove low frequencies   
            this.clearFreqComponent(index, vecTrans);
        for (int index=intFreqHigh+1; index<intFreqMax; index++)    // remove high frequencies
            this.clearFreqComponent(index, vecTrans);
View Full Code Here

        this.checkFunction(arrFunc);
        this.checkFrequency(intFreqLow);
        this.checkFrequency(intFreqHigh);
       
        // Transform function to frequency domain then remove components greater than cutoff
        AbstractComplexVector   vecTrans = this.getTranformer().transform(arrFunc);
       
        for (int index=intFreqLow; index<intFreqHigh; index++)    // remove notch frequencies   
            this.clearFreqComponent(index, vecTrans);

        // Transform back to time domain and return
View Full Code Here

        this.checkFunction(arrFunc);
        this.checkFrequency(intFreq);

        // Transform function to frequency domain then remove components greater than cutoff
        int                     iFreqMax = this.getMaximumFrequency();
        AbstractComplexVector   vecTrans = this.getTranformer().transform(arrFunc);

        for (int index=intFreq; index<iFreqMax; index++)
            this.clearFreqComponent(index, vecTrans);

        // Attenuate the pass-band
View Full Code Here

TOP

Related Classes of JSci.maths.vectors.AbstractComplexVector

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.