Basic code of linearRegressorsAdaptiveControl