Imagine I have a table such as:
ScaleDown ScaleUp
1 0 0
2 1 0
3 0 0
4 0 1
5 0 0
And what I want to do is perform a scale up or down function on a column so that values will be altered to reflect a positive entry that just happened(scale down) or positive entry coming up(scale up).
So the table should end up looking something like this:
ScaleDown ScaleUp
1 0 0
2 1 0.33
3 0.66 0.66
4 0.33 1
5 0 0
Any help much appreciated.
function: