Re: [S] is there a cumouter() like function?

Claude Nadeau (nadeauc@CIRANO.UMontreal.CA)
Tue, 25 Aug 1998 07:51:36 -0400 (EDT)


On Mon, 24 Aug 1998, Jack Lewis wrote:

> Oops, what I meant in the example below was:
> Given a sequence a[i], i=0,1,2,...,n, and some constant k,
> with 0 < k < 1, compute the sequence
> b[i] = k*b[i-1] + a[i], i=1,2,...,n
> NOT
> b[i]= k*a[i-1]+a[i]
> Sorry, Jack
> P.S. I know it can be done with apply()
>

How about filter(a,k,"rec") ?

Cheers,

Claude Nadeau

-----------------------------------------------------------------------
This message was distributed by s-news@wubios.wustl.edu. To unsubscribe
send e-mail to s-news-request@wubios.wustl.edu with the BODY of the
message: unsubscribe s-news