def Poly(self, pars, middle, low, high, x):
        """
        Generates a polynomial with the given parameters
        for all of the x-values.
        x is assumed to be a np.ndarray!
         Not meant to be called directly by the user!
        """
        xgrid = (x - middle) / (high - low)  # re-scale
        return chebyshev.chebval(xgrid, pars)


    ### -----------------------------------------------
dataset/ETHPy150Open kgullikson88/Telluric-Fitter/src/TelluricFitter.py/TelluricFitter.Poly/original