Sampler stores ADC values in to blob. These values can be higher than certain value (32K - middle of ADC range, for example), let’s say “positive” and lower - “negative”. I must calculate the average of these “positive” and “negative” values. May be there is a way to do it more efficiently like traditional : sum and then divide to number of values?