MathGroup Archive 2002

[Date Index] [Thread Index] [Author Index]

Search the Archive

ListCorrelate

  • To: mathgroup at smc.vnet.net
  • Subject: [mg37522] ListCorrelate
  • From: Mike <mikeh1980 at optusnet.com.au>
  • Date: Sat, 2 Nov 2002 03:31:58 -0500 (EST)
  • Sender: owner-wri-mathgroup at wolfram.com

I think it is probably possible to use ListCorrelate in the following way:

ListCorrelate[{(j-1)*X, Y,(j+1)*Z},{a,b,c,d,....}]

Where j changes as they move along the row. The change reflects the position
or part of the element they are operating on. For example initially j =2
then 3, 4...and the output would be

{(2-1)*X*a+Y*b+(2+1)*Z*c,(3-1)*X*b+Y*c+(3+1)*Z*d, ...}

I've tried to replace Times in ListCorrelate with a function that will do
this but had no success. If I can get this simple example to work I will
take this and Map a Matrix onto it:

ListCorrelate[{(j-1)*X, Y,(j+1)*Z},#]&/@ list

This will be part of a larger function which I've written alternatively
using MapThread and Map but I think it should work a lot faster if I can
incorporate ListCorrelate.

Thanks

Mike




  • Prev by Date: rule scoping: bug or feature?
  • Next by Date: AW: machine-size problem again?
  • Previous by thread: Re: rule scoping: bug or feature?
  • Next by thread: Re: ListCorrelate