我正在寻找一种算法,将值映射到具有对数间距的单位比例。比例范围为 0 到 1。传入值的范围为 0 到 10000。
0 映射到 0、1 映射到 0.2、10 映射到 0.4、100 映射到 0.6 1000 映射到 0.8、10000 映射到 1.0
帮助/指示将不胜感激。
algorithm math transform
algorithm ×1
math ×1
transform ×1