MathGroup Archive 2006

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

Search the Archive

Re: Moving average / smoothing data

  • To: mathgroup at smc.vnet.net
  • Subject: [mg64074] Re: Moving average / smoothing data
  • From: "Borut Levart" <BoLe79 at gmail.com>
  • Date: Tue, 31 Jan 2006 01:14:20 -0500 (EST)
  • References: <drk45d$stj$1@smc.vnet.net>
  • Sender: owner-wri-mathgroup at wolfram.com

Would fit do any good?

pt = {#, 1.5*Sin[#] + Random[Real, {-.5, .5}]} & /@ Range[0, 20, .1];
ft = FindFit[pt, a Sin[b x + c], {a, b, c}, x];
DisplayTogether[{
    Plot[a Sin[b x + c] /. ft, {x, 0, 20}],
    ListPlot[pt]}]

Bye
Borut Levart


  • Prev by Date: problem with constants
  • Next by Date: Re: Solve, D, and summations
  • Previous by thread: Re: Moving average / smoothing data
  • Next by thread: Re: Moving average / smoothing data