Deterministic least squares filtering