How Do You Map a Range of Values to a Smaller Scale?

  • Thread starter Thread starter jla2125
  • Start date Start date
  • Tags Tags
    Mapping
AI Thread Summary
To map a range of values from 182 to 455 onto a smaller scale of 1 to 50, a linear function can be used. The equation f(x) = 1 + 49*(x-182)/(455-182) effectively transforms the input values. An alternative formula, f(n) = x1 + (x2 - x1)*(n - y1)/(y2 - y1), is also applicable for similar mappings, where x1 and x2 are the new range limits and y1 and y2 are the original range limits. This approach can be adapted for various ranges as long as the parameters are correctly defined. The discussion confirms that the linear mapping method is versatile for different value ranges.
jla2125
Messages
16
Reaction score
0
Hey! I have a really easy question here, but I still can't figure it out.

I have a range of values from 182 to 455. I need a function that gives me back values from 1-50. IE, f(318) = 25. The numbers aren't critical, but I'd love a general equation to use for this kinda stuff. Can anybody help me out?

Thanks,
~Jeremy
 
Mathematics news on Phys.org
The simplest equation would be linear.

f(x)=1 + 49*(x-182)/(455-182)

There are obvious many other possibilities depending on the information you have.
 
will that form work for just about anything?

IE:
given: 1 = x1, 50 = x2, 182 = y1, 455 = y2:
f(n) = x1 + (x2 - 1)*(n - y1)/(y2 - y1)
 
jla2125 said:
will that form work for just about anything?

IE:
given: 1 = x1, 50 = x2, 182 = y1, 455 = y2:
f(n) = x1 + (x2 - 1)*(n - y1)/(y2 - y1)

Yes: after fixing typo - should have (x2-x1)
 
Suppose ,instead of the usual x,y coordinate system with an I basis vector along the x -axis and a corresponding j basis vector along the y-axis we instead have a different pair of basis vectors ,call them e and f along their respective axes. I have seen that this is an important subject in maths My question is what physical applications does such a model apply to? I am asking here because I have devoted quite a lot of time in the past to understanding convectors and the dual...
Insights auto threads is broken atm, so I'm manually creating these for new Insight articles. In Dirac’s Principles of Quantum Mechanics published in 1930 he introduced a “convenient notation” he referred to as a “delta function” which he treated as a continuum analog to the discrete Kronecker delta. The Kronecker delta is simply the indexed components of the identity operator in matrix algebra Source: https://www.physicsforums.com/insights/what-exactly-is-diracs-delta-function/ by...
Back
Top