def gcv_error(y, ysmooth, peffective):
    gcv = np.mean((y - ysmooth) ** 2) / (1.0 - peffective / y.size) ** 2
    return gcv
Compute generalized cross-validation error.
dataset/ETHPy150Open brandonckelly/bck_stats/bck_stats/gcv_smoother.py/gcv_error