Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

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))
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #change #range #python
ADD COMMENT
Topic
Name
8+5 =