Formula for a "weighted" scale?

57 Views Asked by At

I'm trying to find the formula (or even just the area of math) that I need to achieve the following concept.

I need a scale (X) from 0-100, that wraps around another scale (Y) where the Y values are "weighted" and become more and more compressed the further up scale X they sit.

Ideally I'd like the option to adjust the "compression" rate of scale Y, as hopefully demonstrated in the image below.

Example A features regular spacing on scale Y (ie. zero compression), so it naturally lines up perfectly with scale X.

Example B has a small amount of positive compression on scale Y, so that values on Y will be shifted more to the upper end of scale X.

Example C is a more extreme example of B, where even more compression is applied to scale Y and the values really start to bunch up at the top end of the X scale.

Using example C, if I wanted the 50% value the formula would return ~18%.

I hope I've explained this properly. Thanks in advance for any help.

scale examples

1

There are 1 best solutions below

2
On BEST ANSWER

It is much easier to think in terms of scale from $0$ to $1$. You can then multiply by $100$ if you want. You should draw the lines on the scale as $x^p$. Depending on the value of $p$, you can get lines more compressed towards $0$ or towards $1$. Here is an image with $100\cdot x^p$, with $p=0.5$ and $p=0.25$

p=0.5 and p=0.25