/**
* check the termination condition for nonlinear least squares
+ * TODO can be removed and added just as one line in trf (: terminationStatus = (ftolSatisfied condition || xtolSatisfied condition) ? 1 : 0;) doesnt matter as long as distinguished between 0 and rest
*
* @param actualReduction
* @param cost