Merge pull request #131 from nikicat/master

added movingAverage function
This commit is contained in:
Torkel Ödegaard
2014-02-21 20:06:22 +01:00
+7
View File
@@ -206,6 +206,13 @@ function (_) {
defaultParams: [5]
});
addFuncDef({
name: 'movingAverage',
category: categories.Filter,
params: [ { name: "window size", type: "int" } ],
defaultParams: [10]
});
_.each(categories, function(funcList, catName) {
categories[catName] = _.sortBy(funcList, 'name');
});