Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def normalize(a):
- a = [ (x-min(a)) /(max(a)-min(a)) for x in a]
- return a
- print(normalize( [10.5,30.9,20.5,26.5,40.0] ) )
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement