[FFmpeg-user] Functions for average and variance calulations

Ulf Zibis Ulf.Zibis at gmx.de
Tue Jul 9 01:25:44 EEST 2019


Hi,

are there such functions in the FFmpeg library?

I have an integer array with lets say 13 numbers (accumulated counts of
X in the range of 0..12) like:
a) 0 1 0 1 2 7 9 5 4 3 2 0 1
b) 7 1 9 8 1 6 2 0 0 1 9 1 0

In a) the average X would be ~6 and the variance would be small.
In b) the average X would be ~3.5 and the variance would be bigger.

I'm looking for functions that can calulate such values with a result in
float resolution.

-Ulf

--
Von meinem Seibert gesendet



More information about the ffmpeg-user mailing list