map function to scale values
Issue #245
resolved
it will be a useful addition to have a map function to change ranges of input values.
my version is:
Comments (7)
-
-
reporter Don't matter to me. It is called that in Arduino programming. Whatever is an acceptable name for MB is fine by me.
Get Outlook for Androidhttps://aka.ms/AAb9ysg
-
repo owner Thanks for adding this issue. Good point about calling it something other than “map”. Maybe:
rescale _ from range ( _ , _) to ( _ , _)
-
rescale
is useful , we may add it to the Operators(Advanced)I use it in the cases:
-
@Turgut Guneysu In the screenshot, the comment is right, but the code is wrong, out_min should be in the outer
-
repo owner @Wenjie Thanks for noticing and fixing this.
-
repo owner - changed status to resolved
- Log in to comment
To avoid confusing it with the map HOF, I'd call it something like "rescale". What do you think?