I have set of negative numbers
e.g. [-0.189, -3.55, -19.90, -0.0001]
now I have to convert this set to percentage such that largest number will have highest percentage.
e.g. in above example, -0.0001 should have highest percentage compare to -19.90
Currently I do following,
- Convert every number to positive by taking absolute value
- Convert positive number to their respective percentage (x*100/sum)
- 100-above percentage
- Convert again this to percentage (x'*100/sum)
However this approach is not keeping relative weight age of original numbers. Any ideas? I checked this similar question but I am dealing with negative numbers so can't really use that formula.