Lexa_21
Lexa_21 t1_iwlyig7 wrote
Reply to How to normalize data which contain positive and negative numbers into 0 and 1 by Constant-Cranberry29
You can try to transform your negative values into the [0, 0.5] interval and your positive values into the [0.5, 1] interval.
Lexa_21 t1_iwlyy3b wrote
Reply to comment by Lexa_21 in How to normalize data which contain positive and negative numbers into 0 and 1 by Constant-Cranberry29
In pseudo code: if (x<0) { x = 1/2 * x/minValue } else { x = 1/2 * x/maxValue + 0.5 }