帮我改写成c++ ComplexSignal Y = fft.transform(y); ComplexSignal H = fft.transform(h); ComplexSignal A = Operations.delta(gamma, H); ComplexSignal G = Operations.multiplyConjugate(gamma, H, Y); SignalCollector.free(Y); SignalCollector.free(H); ComplexSignal Z = G.duplicate(); RealSignal x = fft.inverse(G); RealSignal z = x.duplicate(); float threshold = (float)(lambda*gamma*0.5); RealSignal buffer = y.duplicate(); while(!controller.ends(x)) { fft.transform(x, Z); Z.times(A); Z.plus(G); fft.inverse(Z, z); wavelets.shrinkage(threshold, z, x, buffer); }
时间: 2023-03-24 09:04:05 浏览: 128
FFT.rar_C FFT_fft_fft.c
复数信号 Y = fft_transform(y);
复数信号 H = fft_transform(h);
复数信号 A = Operations_delta(gamma, H);
复数信号 G = Operations_multiplyConjugate(gamma, H, Y);
SignalCollector_free(Y);
SignalCollector_free(H);
复数信号 Z = G_duplicate();
实数信号 x = fft_inverse(G);
实数信号 z = x_duplicate();
float threshold = (float)(lambda*gamma*.5);
实数信号 buffer = y_duplicate();
while(!controller_ends(x)) {
fft_transform(x, Z);
Z.times(A);
Z.plus(G);
fft_inverse(Z, z);
wavelets_shrinkage(threshold, z, x, buffer);
}
阅读全文