V
V
Viktor T22021-11-18 02:10:16
Mathematics
Viktor T2, 2021-11-18 02:10:16

How to correct a variable?

There is a variable from the position sensor
Changes in the range 0 to 1
Average position 0.5
Sensor sensitivity near 0.5 high
closer to the edges, that is, to 1 and 0 - low
how to choose a function for the variable to increase sensitivity
closer to the edges
tell me where to dig

Answer the question

In order to leave comments, you need to log in

2 answer(s)
G
Grigory Boev, 2021-11-18
@Viktor_T2

Take the parabola, for example. The top at the point (0.5;1) - there is no amplification in the center. At 0 and 1, for example, gain 2 is needed, then the equation
f=(x-0.5)*(x-0.5)*(4*( 2 - 1 )) + 1
2 are the values ​​at the edges of the range (0 and 1)
1
619594a1e580e456992823.png
is the value in the middle of the range (0.5 )

N
Nikolay Savelyev, 2021-11-18
@AgentSmith

Gauss bell

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question