10 Nov
2022
10 Nov
'22
5:35 p.m.
i tried with a max_period of 2.5 and it reconstructed the 4-long undersampled data with the two middle samples swapped: (Pdb) p abs(micro_ift(micro_ft(poorlysampled, 2.5), 2.5, upsample=True)) array([0.40683351, 0.74521147, 0.00094595, 0.1613921 ]) (Pdb) superdata = np.random.random(4) (Pdb) poorlysampled = np.concatenate((superdata[::2],superdata[1::2])) (Pdb) p abs(micro_ift(micro_ft(poorlysampled, 2.5), 2.5, upsample=True)) array([0.20217204, 0.32155652, 0.52211907, 0.16352045]) (Pdb) p superdata array([0.20217204, 0.52211907, 0.32155652, 0.16352045])