home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The Unsorted BBS Collection
/
thegreatunsorted.tar
/
thegreatunsorted
/
misc
/
trend.nlr
< prev
next >
Wrap
Text File
|
1994-01-16
|
1KB
|
62 lines
/*
* Sine wave with linear growth trend
* The amplitude, frequency, and phase of the sine wave are estimated
*/
Title "Linear trend with sine component";
Variables X,Y;
Angletype radians;
Parameters p0,p1,Amplitude,Period=2.3,Phase=0;
Function Y = p0 + p1*X + Amplitude*sin(2*pi*(X-Phase)/Period);
Plot Residual,grid;
Data;
1 6.61373
1.14286 6.67525
1.28571 6.05155
1.42857 6.03645
1.57143 5.7362
1.71429 6.9072
1.85714 7.37536
2 8.20144
2.14286 10.4602
2.28571 10.5806
2.42857 12.0161
2.57143 11.2626
2.71429 11.805
2.85714 13.0205
3 12.9144
3.14286 11.2578
3.28571 11.796
3.42857 11.2543
3.57143 10.8899
3.71429 10.3165
3.85714 10.7962
4 12.1749
4.14286 14.0571
4.28571 13.1632
4.42857 14.5436
4.57143 15.5899
4.71429 16.169
4.85714 17.2427
5 17.0113
5.14286 17.0884
5.28571 15.1123
5.42857 15.4322
5.57143 15.2365
5.71429 14.5568
5.85714 15.8915
6 16.7751
6.14286 17.0184
6.28571 16.8796
6.42857 16.9628
6.57143 21.2143
6.71429 21.1784
6.85714 21.9785
7 19.9373
7.14286 19.6727
7.28571 20.5251
7.42857 19.9088
7.57143 17.4681
7.71429 19.3866
7.85714 17.7899
8 20.6011