{"action":"opened","issue":{"url":"https://api.github.com/repos/isenseDev/rSENSE/issues/2264","labels_url":"https://api.github.com/repos/isenseDev/rSENSE/issues/2264/labels{/name}","comments_url":"https://api.github.com/repos/isenseDev/rSENSE/issues/2264/comments","events_url":"https://api.github.com/repos/isenseDev/rSENSE/issues/2264/events","html_url":"https://github.com/isenseDev/rSENSE/issues/2264","id":110448503,"number":2264,"title":"Linear fit giving incorrect results","user":{"login":"smichalka","id":5709961,"avatar_url":"https://avatars.githubusercontent.com/u/5709961?v=3","gravatar_id":"","url":"https://api.github.com/users/smichalka","html_url":"https://github.com/smichalka","followers_url":"https://api.github.com/users/smichalka/followers","following_url":"https://api.github.com/users/smichalka/following{/other_user}","gists_url":"https://api.github.com/users/smichalka/gists{/gist_id}","starred_url":"https://api.github.com/users/smichalka/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/smichalka/subscriptions","organizations_url":"https://api.github.com/users/smichalka/orgs","repos_url":"https://api.github.com/users/smichalka/repos","events_url":"https://api.github.com/users/smichalka/events{/privacy}","received_events_url":"https://api.github.com/users/smichalka/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-10-08T13:14:50Z","updated_at":"2015-10-08T13:14:50Z","closed_at":null,"body":"There is an issue with the linear and quadratic fit functions.  This was based on a teacher's issue, but I have created a new problem to illustrate this: http://isenseproject.org/projects/1422\r\n\r\nThere are 3 data sets which all demonstrate this issue:\r\ndecimals: based on the function y = 6000x\r\nwhole numbers:  based on the function y = 4x \r\nnon zero intercept: based on the function y = 3x + 5\r\n\r\nI originally thought this was related to the repeating decimal in the first data set, but this seems to be a problem with the fit function in general.\r\n\r\n In the first data set, the linear equation is calculated as y = 5882x +1413, when the data were calculated using y = 6000x.  The automatic equation generator often results in close to the right equation, y = 1.455e-11 + 6000x, though this would also be a confusing result for students.  The linear fit issue also appears with the quadratic fit.  \r\nThe repeating decimal in the smallest time data point comes from 1/60, and this issue occurs using 0.01666666666666666 or 0.016666666666667.  \r\n"}}