ON OPTIMAL FILTERING FOR INVERSE DYNAMICS ANALYSIS