开发者

Is there a specific name for this normalization function?

开发者 https://www.devze.com 2023-01-07 18:52 出处:网络
I want to write a normalization function that will take a signed integer and normalize it to a double between -1 to +1. Is there a special name for this type of function, or is Normalize() what people

I want to write a normalization function that will take a signed integer and normalize it to a double between -1 to +1. Is there a special name for this type of function, or is Normalize() what people normally call it?

Also, is there开发者_开发知识库 a native iPhone function that does this?


It is indeed called normalization. There's no function needed for it since all that's required is to scale it by the maximum and clip it to the range.

0

精彩评论

暂无评论...
验证码 换一张
取 消