Take the 2-minute tour ×
Mathematics Stack Exchange is a question and answer site for people studying math at any level and professionals in related fields. It's 100% free, no registration required.

A function returns a value between 0.0 and 1.0. I want now to apply a scaling function on this result so that I get a value between -500 and 500.

The transition should not be linear but adaptable - that is for example I want to achieve that a value gets transformed within the range [-500,0] is two more times frequent than within the range [1,500].

I've seen a similar question Range scaling problem but there a more linear transformation is discussed.

Thanks a lot for any help on this matter!

share|improve this question
    
If $g(t)$ is your function with values between $0$ and $1$, then you might want the function $1000g(t)^\alpha -500$, where $\alpha$ is an adjustable parameter. –  J. M. Apr 28 '12 at 14:54
    
Yes, thx α = 2 is simply what I need currently –  Hawk66 Apr 29 '12 at 8:43
add comment

1 Answer

up vote 1 down vote accepted

Apparently answered in comments:

If $g(t)$ is your function with values between $0$ and $1$, then you might want the function $1000g(t)^\alpha−500$, where $\alpha$ is an adjustable parameter. – J. M. Apr 28 at 14:54

Yes, thx $\alpha = 2$ is simply what I need currently – Hawk66 Apr 29 at 8:43

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.