python range 0 to 1 code example
Example 1: change range to 0 to 0 to 1 python
import numpy as np
def NormalizeData(data):
return (data - np.min(data)) / (np.max(data) - np.min(data))
Example 2: python range from n to 0
range(N, -1, -1) is better