least-square filtering