DecompositionResult result = instance.decompose(data, 1);
assertArrayEquals(approximationExpect, result.getApproximation(), DOBLE_COMPARISON_DELTA);
assertArrayEquals(detailExpect, result.getDetailsList().get(0), DOBLE_COMPARISON_DELTA);
double[] reconstructed = instance.reconstruct(result);
assertArrayEquals(data, reconstructed, DOBLE_COMPARISON_DELTA);
}
@Test
public void testReconstructionFrom2LevelDecomposition() {