Generalization of LMS