psambit9791 / jdsp

A Java Library for Digital Signal Processing
https://jdsp.dev
MIT License
240 stars 45 forks source link

IDFT should support onlyPositive array. #13

Closed psambit9791 closed 3 years ago

psambit9791 commented 3 years ago

IDFT right now supports only transforming array with same length as the signal. But a fully functional IDFT also needs to support transforming the half length sequences which are used as outputs from DFT of real-valued signals. This can be done because, for real valued signals, the second half is the mirrored complex conjugate of the first half.

This support needs to be added to the InverseDiscreteFourier class.

psambit9791 commented 3 years ago

Added enhancement in commit 1311e511c6be81f15a2f1372b7c113e355b3a45d.