DCT based algorithm on dimension reduction of residual frequency magnitude parameters