I have a couple input files with a column of numbers I would like to normalize from 1 to 3. For example, one file has values ranging from 0.002 to 0.080, the other 0.4 to 0.8 ... and so on ... i.e. they all have different ranges, but I would like to normalize them to the same scale.
Is there a way to write a normalization script (or is there an existing module) that takes an input file
a range (1 to 3) as argument, finds the minimum and maximum value of the numbers in the file, then normalizes the values in the file to the specified range in the argument?
Thanks for your help!