python/fitval.py
author Puneeth Chaganti <punchagan@fossee.in>
Fri, 27 May 2011 14:24:59 +0530
changeset 0 0efde00f9229
permissions -rw-r--r--
Initial commit.

#!/usr/bin/python

# finds the value of a polynomial in powers of z^{-1}
# function Y = filtval(P,z)

def fitval(P, z):
    N = len(P) - 1
    return Y
   
Q = polyno(P,'x');
Y = horner(Q,z)/z^N;