]> git.ipfire.org Git - thirdparty/asterisk.git/commit
res_rtp_asterisk: Fix standard deviation calculation
authorKevin Harwell <kharwell@sangoma.com>
Mon, 22 Mar 2021 20:22:42 +0000 (15:22 -0500)
committerGeorge Joseph <gjoseph@digium.com>
Thu, 1 Apr 2021 13:43:20 +0000 (08:43 -0500)
commit0fc906a5e1aed2b7b3de92dd4aaeb4f93149157c
treee38b6f76bd129eac33d54a3c399cc1570110a745
parentc4a376aac297e376eee0b0dba7ac49d728aa9c02
res_rtp_asterisk: Fix standard deviation calculation

For some input to the standard deviation algorithm extremely large,
and wrong numbers were being calculated.

This patch uses a new formula for correctly calculating both the
running mean and standard deviation for the given inputs.

ASTERISK-29364 #close

Change-Id: Ibc6e18be41c28bed3fde06d612607acc3fbd621f
res/res_rtp_asterisk.c