home *** CD-ROM | disk | FTP | other *** search
/ DP Tool Club 15 / CD_ASCQ_15_070894.iso / maj / 4352 / trend.nlr < prev    next >
Text File  |  1994-01-16  |  1KB  |  62 lines

  1. /*
  2.  *  Sine wave with linear growth trend
  3.  *  The amplitude, frequency, and phase of the sine wave are estimated
  4.  */
  5. Title "Linear trend with sine component";
  6. Variables X,Y;
  7. Angletype radians;
  8. Parameters p0,p1,Amplitude,Period=2.3,Phase=0;
  9. Function Y = p0 + p1*X + Amplitude*sin(2*pi*(X-Phase)/Period);
  10. Plot Residual,grid;
  11. Data;
  12. 1   6.61373
  13. 1.14286   6.67525
  14. 1.28571   6.05155
  15. 1.42857   6.03645
  16. 1.57143   5.7362
  17. 1.71429   6.9072
  18. 1.85714   7.37536
  19. 2   8.20144
  20. 2.14286   10.4602
  21. 2.28571   10.5806
  22. 2.42857   12.0161
  23. 2.57143   11.2626
  24. 2.71429   11.805
  25. 2.85714   13.0205
  26. 3   12.9144
  27. 3.14286   11.2578
  28. 3.28571   11.796
  29. 3.42857   11.2543
  30. 3.57143   10.8899
  31. 3.71429   10.3165
  32. 3.85714   10.7962
  33. 4   12.1749
  34. 4.14286   14.0571
  35. 4.28571   13.1632
  36. 4.42857   14.5436
  37. 4.57143   15.5899
  38. 4.71429   16.169
  39. 4.85714   17.2427
  40. 5   17.0113
  41. 5.14286   17.0884
  42. 5.28571   15.1123
  43. 5.42857   15.4322
  44. 5.57143   15.2365
  45. 5.71429   14.5568
  46. 5.85714   15.8915
  47. 6   16.7751
  48. 6.14286   17.0184
  49. 6.28571   16.8796
  50. 6.42857   16.9628
  51. 6.57143   21.2143
  52. 6.71429   21.1784
  53. 6.85714   21.9785
  54. 7   19.9373
  55. 7.14286   19.6727
  56. 7.28571   20.5251
  57. 7.42857   19.9088
  58. 7.57143   17.4681
  59. 7.71429   19.3866
  60. 7.85714   17.7899
  61. 8   20.6011
  62.