'A vectorized function that returns the value of the look ahead
estimate at the values in the array y.
Parameters
y : array_like(float)
A vector of points at which we wish to evaluate the look-
ahead estimator
Returns
psi_vals : array_like(float)
The values of the density estimate at the points in y'

def __call__(self, y):

    k = len(y)
    v = self.p(self.X, y.reshape((1, k)))
    psi_vals = np.mean(v, axis=0)
    return psi_vals.flatten()
