Cosine Regression
|
07-28-2017, 10:21 PM
(This post was last modified: 07-28-2017 10:22 PM by Eddie W. Shore.)
Post: #1
|
|||
|
|||
Cosine Regression
Introduction
The program COSREG attempts to fit data to the curve: Y = A*cos(C*(X-D)) +B The user will provide the x-data, y-data, and the period of the data. Radians mode will be used. HP Prime Program: COSREG Arguments x list, y list, estimated period Code:
The coefficients are returned in a list. Cosine Regression: Y = A * COS(C*(X – D)) + B Example 1 X = {0, π/4, π/2, 3π/4 ,1} Y = {5, 2, -1, 2, 5} Period: π Results: A = 3 C = 2 D = 0 B = 2 (Y = 2 COS(2X) + 3) |
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 1 Guest(s)