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.

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 ?

Thanks

share|improve this question

1 Answer 1

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|improve this answer

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.