I have following values:
x = [0, 12.5, 25, 50, 75, 87.5, 100]
y = [0.0, 0.2, 0.31, 0.5, 0.66, 0.76, 1.0]
These values represent display values from a device that provides something like a charging status. My problem is that the display (which is a mechanical hand) is not providing the correct values. When everything is correct, it should be a straight linear curve (x
against x
). But what I see is y
against x
.
What I would like to do: How can I create a function that takes into account these values and provides the correct valuse I would like to have?
My idea is: Fit the measured values and create a function which shifts the data points such that they ly on a straight line, finally.
Does that make sense?
Goal: How do I get the correct values? It looks like I have to shift the values below 50 % downwards and the values above 50 % upwards.
x
values)? Do you always getx = 12.5
wheny = 0.2
? $\endgroup$