How to create a weighted average of Chops?

In this example I’m trying to make a weighted average of 10 data sample sets.

-Each set of data has a slider that blends it from 0-100%…
-I need to make a Weighted Average of all the data sets where those sliders (from 0-1 (0-100%)) also give it weight in the overall final average… (If the slider is at 0, it will have no effect in the average)

The concept is simple but I’m not sure how to go about it in Touch. There is a lot of data to deal with in the 10 sample sets…

Here is the Touch File…

If anyone can help me it would be so amazing!
weighted average question.1.toe (120 KB)

Hmmm… I figured it out… I was looking for Touchdesigner to have a magic solution… but what was really needed was a few more layers of math…

Didn’t look at your file , but check the blend chop

I’m trying to do something similar (I think) as I need to average only the channels in a chop that aren’t equal to 0. Finding it tricky to achieve this without lengthy amateur code and I’m sure there must be a better way of filtering out these ‘0’ channels. I’m not sure how blend is meant to help in this context.