You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
moduleMainwhereimportqualifiedNumeric.FFT.Vector.UnnormalizedasFFTimportData.Vector (fromList, toList)
importData.List.Split (splitOneOf)
importData.List (intersperse)
importControl.Monad (forever)
importControl.Arrow ((>>>))
main = forever $getLine-- read lines>>=( splitOneOf "\t"--| split then to chunks on whitespace>>>mapread--| | conert them to a list of Doubles>>> fromList --| | | convert the list to Vector>>>FFT.run FFT.dct1 --| | | | DCT>>> toList --| | | convert resulting Vector back to list>>>mapshow--| | convert each Double back to String>>> intersperse ""--| put " " between all chunks>>>concat--| make one happy string from chunks and " "s>>>putStrLn ) -- output it
vector-fftw seems not to like 1-element vectors.
The text was updated successfully, but these errors were encountered: