Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想编写一个规范化函数,它将接受一个有符号整数并将其规范化为 -1 到 +1 之间的双精度数。这种类型的功能有什么特殊的名称,还是Normalize()人们通常所说的?
Normalize()
另外,是否有一个原生的 iPhone 功能可以做到这一点?
它确实被称为标准化。它不需要任何功能,因为所需的只是将其缩放到最大值并将其裁剪到范围内。