Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
@ndmoving(
[(float32[:], int64, int64, float32[:]), (float64[:], int64, int64, float64[:])]
)
def move_mean(a, window, min_count, out):
asum = 0.0
count = 0
for i in range(min_count - 1):
ai = a[i]
if not np.isnan(ai):
asum += ai
count += 1
out[i] = np.nan
for i in range(min_count - 1, window):
ai = a[i]