From: Kostya Shishkov Date: Mon, 15 Jun 2020 16:46:08 +0000 (+0200) Subject: codec_support/vq: calculate full cluster distortion instead of an average X-Git-Url: https://git.nihav.org/?a=commitdiff_plain;h=02f41cfc7bebe283323a73a34ef14601116116da;p=nihav.git codec_support/vq: calculate full cluster distortion instead of an average --- diff --git a/nihav-codec-support/src/vq/generic_elbg.rs b/nihav-codec-support/src/vq/generic_elbg.rs index 3c3e3c0..01feaa8 100644 --- a/nihav-codec-support/src/vq/generic_elbg.rs +++ b/nihav-codec-support/src/vq/generic_elbg.rs @@ -56,9 +56,6 @@ impl> Cluster { } } fn calc_dist(&mut self) { - if self.count != 0 { - self.dist = (self.dist + self.count / 2) / self.count; - } } }