Linear Mapping Tool
Map values from one linear scale to another. This mathematical tool is essential for sensor calibration, unit conversion, data normalization, and transforming values between different numerical ranges.
Input Scale
Define your input value and range
Output Scale
Define your output range
Result & Formula
This formula converts any value from the input scale to the equivalent value on the output scale using linear mapping.
Example: If a sensor outputs values from 0 to 5, and you want to convert them to a percentage from 0 to 10, this tool calculates the conversion for you.
How Linear Mapping Works
Linear mapping transforms values from one range to another using an affine function (a linear function plus a constant offset):
output = input × factor + offset
The factor is calculated as:
factor = (outputHigh - outputLow) / (inputHigh - inputLow)
The offset is calculated as:
offset = outputLow - (inputLow × factor)
Linear mapping is fundamental in various fields, including computer graphics, signal processing, machine learning, and data science. It's used for tasks such as sensor calibration, data normalization, color space conversion, and adapting values between different measurement systems.