Package ru.ifmo.diplom.kirilchuk.jawelet.core.dwt.transforms.legall.impl

Examples of ru.ifmo.diplom.kirilchuk.jawelet.core.dwt.transforms.legall.impl.LeGallWaveletTransform.decompose()


    @Test
    public void testReconstructionFrom1LevelWithLeGall() {
        double[] data = {1,2,3,4};

        DWTransform1D instance = new LeGallWaveletTransform();
        DecompositionResult result = instance.decompose(data, 1);

        double[] reconstructed = instance.reconstruct(result);
        assertArrayEquals(data, reconstructed, DOBLE_COMPARISON_DELTA);
    }
View Full Code Here


            data[i] = rnd.nextInt(Integer.MAX_VALUE);
        }

        DWTransform1D instance = new LeGallWaveletTransform();

        DecompositionResult result = instance.decompose(data, power - 1);
        assertEquals(power - 1, result.getLevel());
        assertEquals(2, result.getApproximation().length);

        double[] reconstructed = instance.reconstruct(result);
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.