I have an application that uses linear regression. I downloaded common math
apache library where there is a class SimpleRegression
.
I read the documentation but i didn't understand it very well.
Here is what i want to do:
Every 200ms i am going to enter a data set with counter
as Y and value
as X.
Every 1s ( so 5 data entries ) i want to check the regression and see if some value Z is on the line or not.
Data entry part i know how to do, but i am not sure how to check if some value iz on the line, or not.
Can anyone help me?