Package ru.ifmo.diplom.kirilchuk.jawelet.util.extensioner.actions

Examples of ru.ifmo.diplom.kirilchuk.jawelet.util.extensioner.actions.AddLastToEnd


            double[] approximation = new double[approxLength];
            System.arraycopy(data, 0, approximation, 0, approxLength);

            double[] extendedApproximation = new Extensioner(approximation)
                    .schedule(new CopyElementToBegin(0))
                    .schedule(new AddLastToEnd())
                    .execute();

            extendedApproximation = sampler.upsample(extendedApproximation);
            extendedApproximation = MathUtils.convolve(extendedApproximation, lowReconstructionFilter.getCoeff());
            extendedApproximation = windower.window(extendedApproximation, 2, approximation.length * 2 + 2);

            double[] details = new double[approxLength]; //must have same length with approximation
            System.arraycopy(data, approxLength, details, 0, approxLength);
            double[] extendedDetails = new Extensioner(details)
                    .schedule(new CopyElementToBegin(1))
                    .schedule(new AddLastToEnd())
                    .execute();

            extendedDetails = sampler.upsample(extendedDetails);
            extendedDetails = MathUtils.convolve(extendedDetails, highReconstructionFilter.getCoeff());
            extendedDetails = windower.window(extendedDetails, 4, details.length * 2 + 4);
View Full Code Here

TOP

Related Classes of ru.ifmo.diplom.kirilchuk.jawelet.util.extensioner.actions.AddLastToEnd

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.