in functions/calculate_weights/calculate_weights.py [0:0]
def linear(num_points):
delta = 1.0 / num_points
prev = 0
values = []
# note: much more sophisticated weight functions can be generated using numpy
for i in range(0, num_points):
val = prev + delta
values.append(round(val, 2))
prev = val
return values