I have 97 input values that I need to spread over 100 output values, such that the total remains the same. In other words, each output value will be a 97/100th chunk of the relevant input values.
The image below shows a simplified example with 3 input values and 4 output values, i.e. each output value is a 3/4 chunk of one or two of the input values:
- the 1st output value is just 3/4 of the first input value
- the 2nd output value is the remaining 1/4 of the first input value, plus 1/2 of the next (second) input value
- the 3rd output value is the remaining 1/2 of the second input value, plus 1/4 of the next (third) input value
- the 4th output value is the remaining 3/4 of the third input value, plus ... nothing, as we have now completed the table
I'm not sure if this should be trivially simple? But I can't think of a way to automate it; does anyone have any bright ideas?
The image below shows a simplified example with 3 input values and 4 output values, i.e. each output value is a 3/4 chunk of one or two of the input values:
- the 1st output value is just 3/4 of the first input value
- the 2nd output value is the remaining 1/4 of the first input value, plus 1/2 of the next (second) input value
- the 3rd output value is the remaining 1/2 of the second input value, plus 1/4 of the next (third) input value
- the 4th output value is the remaining 3/4 of the third input value, plus ... nothing, as we have now completed the table
I'm not sure if this should be trivially simple? But I can't think of a way to automate it; does anyone have any bright ideas?