Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

Normalize function

double Normalize(double val, double valmin, double valmax, double min, double max) 
{
    return (((val - valmin) / (valmax - valmin)) * (max - min)) + min;
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #Normalize #function
ADD COMMENT
Topic
Name
4+4 =