title: Using apache simple regression
body: <p>I have an application that uses linear regression. I downloaded <code>common math</code> apache library where there is a class <code>SimpleRegression</code>.   </p>
  
  <p>I read the documentation but i didn't understand it very well.</p>
  
  <p>Here is what i want to do:<br>
  Every 200ms i am going to enter a data set with <code>counter</code> as Y and <code>value</code> as X.  </p>
  
  <p>Every 1s ( so 5 data entries ) i want to check the regression and see if some value Z is on the line or not.  </p>
  
  <p>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.  </p>
  
  <p>Can anyone help me?</p>