add ideal filter option to leastsquares