src/utilities.py
def cum_mov_average(array):
	"""
	cum_mov_average(array)
	
	Returns cumulative moving average of array elements
	"""

	l = len(array)
	average = np.zeros(l)
	average[0] = array[0]

	for i in range(l-1):
		average[i+1] = average[i] + (array[i+1] - average[i]) / (i+1)  
	
	return average

	cum_mov_average(array)
	
	Returns cumulative moving average of array elements
	
cum_mov_average(array)
Returns cumulative moving average of array elements
cum_mov_average ( array ) Returns cumulative moving average of array elements
def cum_mov_average(array):
	l = len(array)
	average = np.zeros(l)
	average[0] = array[0]
	for i in range(l-1):
		average[i+1] = average[i] + (array[i+1] - average[i]) / (i+1)  
	return average
def cum_mov_average ( array ) : l = len ( array ) average = np . zeros ( l ) average [ 0 ] = array [ 0 ] for i in range ( l - 1 ) : average [ i + 1 ] = average [ i ] + ( array [ i + 1 ] - average [ i ] ) / ( i + 1 ) return average
cum_mov_average(array)
Returns cumulative moving average of array elements
cum_mov_average ( array ) Returns cumulative moving average of array elements
"""
	cum_mov_average(array)
	
	Returns cumulative moving average of array elements
	"""
array