OSDN Git Service

GMIN-3044: Fix a few edge cases in filtering code
authorPatrick Porlan <patrick.porlan@intel.com>
Wed, 20 Aug 2014 14:31:19 +0000 (16:31 +0200)
committerAdriana Reus <adriana.reus@intel.com>
Wed, 3 Sep 2014 07:53:38 +0000 (10:53 +0300)
commitac3a0ef9cea990f4fbb6e9a912576d0db4ee8ca9
tree246085540414e17c0900421657ba3fb07af6162a
parent1f3fb0ebe866f53bfc2c785ce1842882344354f6
GMIN-3044: Fix a few edge cases in filtering code

- limit ourselves to a window size of 100 to limit CPU usage

- start filtering as soon as we have a few samples instead of
  waiting for a full history buffer

- drop out if we're operating with window size = 1

And restructure the code a little bit for improved clarity.

Issue: GMIN-3044

Change-Id: Ia4e6208bfb86bccda8473502f3f1d16ef61771ca
Signed-off-by: Patrick Porlan <patrick.porlan@intel.com>
transform.c