I have 2D elements distributed in a space of [-4, +4] and want to convert any point in the 2D space to a 1D real-valued number 0~1.0 such that 1st quadrant [+, +] should have higher values (importance) suppose 0.4~1 , 2nd and 3rd quadrant [+, -] and [-, +] should be next 0.2~0.4, and the 4th quadrant [-, -] should have the least values 0~0.1.(adsbygoogle = window.adsbygoogle || []).push({});

How can I have such a mapping function!

Thanks!

**Physics Forums | Science Articles, Homework Help, Discussion**

Join Physics Forums Today!

The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

# Mapping function from 2D to 1D

**Physics Forums | Science Articles, Homework Help, Discussion**