def num_windows_of_length_M_on_buffers_of_length_N(M, N):
 return ((N - M) + 1)

def num_windows_of_length_M_on_buffers_of_length_N ( M , N ) : return ( ( N - M ) + 1 )
for a window of length m rolling over a buffer of length n .