I want to write a function that gets up to six parameter and an array of input values and map inputs value to output based on the following conditions:
- we know min and max of input values.
- The output min and max should be a constant value (say -10,100).
- Based on parameters, it amplify small input values more than input values which are near inputmax.
- after mapping, the output min and max should be the constant values.
I think I need some sort of logarithmic amplification. But I am not sure how to define it so that it match the above mentioned conditions.
What mathematical formula can I use for this?
I need to implement it both in c++ and c#. If I know how to implement it in one of them, I can convert it to other one.