I\'m looking for a method to to get a weighted average for each row in a way where the calculated weights are halved depending on all the previous values (and that continuing fo