(x, y, nfinite, result)
return nfinite, (sum_x, sum_y, sum_xy, sum_xx, sum_yy)
Calculate the window sums for corr without old value.
Calculate the window sums for corr without old value.
Calculate the window sums for corr without old value .
def pop_corr(x, y, nfinite, result):
    """Calculate the window sums for corr without old value."""
    sum_x, sum_y, sum_xy, sum_xx, sum_yy = result
    if numpy.isfinite(x) and numpy.isfinite(y):
        nfinite -= 1
        sum_x -= x
        sum_y -= y
        sum_xy -= x * y
        sum_xx -= x * x
        sum_yy -= y * y

    return nfinite, (sum_x, sum_y, sum_xy, sum_xx, sum_yy)
def pop_corr ( x , y , nfinite , result ) : sum_x , sum_y , sum_xy , sum_xx , sum_yy = result if numpy . isfinite ( x ) and numpy . isfinite ( y ) : nfinite -= 1 sum_x -= x sum_y -= y sum_xy -= x * y sum_xx -= x * x sum_yy -= y * y return nfinite , ( sum_x , sum_y , sum_xy , sum_xx , sum_yy )