Mathematics Stack Exchange is a question and answer site for people studying math at any level and professionals in related fields. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

i am using this weighted sum

How to build a function that gives recent years higher weight?

but I am getting values in the range 1- 0.0000002

How can I reduce this range ? Make it something like 1- 0.002 ?


share|cite|improve this question

Suppose you are getting $x$ in the range $0.0000002 - 1$. Let $y$ = $((x - 0.0000002) * 0.998 / 0.9999998) + 0.002$. Now $y$ is in the range $0.002 - 1$. So just use $y$ in place of $x$ if you want values in that range.

share|cite|improve this answer

Your Answer


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.