#Line fitting used in lms line fitting using sgd extended kalman filter (matlab, has to be rewritten in c++) particle filter (TODO)