affineDFT