[Haskell-cafe] Convolution

Andrew Coppin andrewcoppin at btinternet.com
Fri Nov 7 17:39:02 EST 2008


Henning Thielemann wrote:
>
> I think the verb is 'convolve'.

Possibly.

> If ks is infinite it will not work.

Indeed.

>> If the correlate function could be altered to use Prelude list 
>> functions only, I would think the above code works quite well with 
>> stream fusion too. (Presumably you could do this using "inits" or 
>> something?)
>
> You mean 'tails' ? Would be rather straight-forward.

Hmm... Off the top of my head, I'm not sure which would be the correct 
one... Either way, I haven't tried it, but it looks like it shouldn't be 
hard.



More information about the Haskell-Cafe mailing list