add window mode for integrative gain
array creation
Merge pull request #2 from flagos/master

add an option to limit history to last N samples for integrative compute