Skip to content
Prev 369904 / 398503 Next

fitting cosine curve

Hi lily,
You can get fairly good starting values just by eyeballing the curves:

plot(y)
lines(supsmu(1:20,y))
lines(0.6*cos((1:20)/3+0.6*pi)+17.2)

Jim
On Wed, Jun 21, 2017 at 9:17 AM, lily li <chocold12 at gmail.com> wrote: