Source: http://matlab.fei.tuke.sk/orhs/subory/podklady/P11_Filters_Cost_Functions_Stengel.pdf