P
P
polikarpovst2019-04-17 13:45:52
Mathematics
polikarpovst, 2019-04-17 13:45:52

How to calculate the weighted average for a cyclic series?

There is an array of values ​​. The first value ranges from 0 to 20 inclusive, the second - from 0 to 4000, is the "weight".
You need to find the weighted average, provided that the first number is cyclic, that is, after 20 comes 0 (for example, the average value without weights for the numbers 18 and 3 will be 0).
Help with formula please.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Andrey, 2019-04-17
@VladimirAndreev

(0*3600+5*600+20*1400)/(3600+600+1400)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question