MathGroup Archive 2006

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

Search the Archive

Re: Multiple application of LinearFilter

  • To: mathgroup at smc.vnet.net
  • Subject: [mg64838] Re: [mg64823] Multiple application of LinearFilter
  • From: Bob Hanlon <hanlonr at cox.net>
  • Date: Sun, 5 Mar 2006 03:18:57 -0500 (EST)
  • Reply-to: hanlonr at cox.net
  • Sender: owner-wri-mathgroup at wolfram.com

Nest[LinearFilter[#, {1/2, 1/2}] &, originaldata, 3]


Bob Hanlon

> 
> From: "Lea Rebanks" <lrebanks at netvigator.com>
To: mathgroup at smc.vnet.net
> Subject: [mg64838] [mg64823] Multiple application of LinearFilter
> 
> 
>  
> Hi All,
>  
> I have been using LinearFilter on my data with great success & achieve
> better results the more times I pass my data through the LinearFilter. (
> I have had to adjust data length to maintain correct indexing with
> PadLeft - but this is not my question here.)
>  
> Below is how I am applying the multiple LinearFilter.
>  
> EG
>  
> originaldata
>  
> Data1=LinearFilter[originaldata, {1/2,1/2}];
> Data2=LinearFilter[Data1, {1/2,1/2}];
> Data3=LinearFilter[Data2, {1/2,1/2}];
>  
>  
> My question is - Is there a shorter way of writing multiple passes of
> the above.
>  
> If there is a way, please show the code.
>  
> It would be great if I could simply adjust the number of passes from say
> three above to any number of passes to find optimum setting for data.
>  
> Many thanks for your attention.
>  
> Best Regards - Lea Rebanks...
>  
>  
> 
> 


  • Prev by Date: Re: Multiple application of LinearFilter
  • Next by Date: Re: Unprotecting "I"
  • Previous by thread: Re: Multiple application of LinearFilter
  • Next by thread: Re: Multiple application of LinearFilter