functions: rename moving avg to graphite-like

This commit is contained in:
Alexander Zobnin
2017-07-04 10:16:03 +03:00
parent f3ee574619
commit 0b8cb0b23c
8 changed files with 23 additions and 20 deletions

View File

@@ -74,16 +74,16 @@ addFuncDef({
});
addFuncDef({
name: 'simpleMovingAverage',
name: 'movingAverage',
category: 'Transform',
params: [{ name: 'factor', type: 'int', options: [6, 10, 60, 600] }],
params: [{ name: 'factor', type: 'int', options: [6, 10, 60, 100, 600] }],
defaultParams: [10]
});
addFuncDef({
name: 'expMovingAverage',
name: 'exponentialMovingAverage',
category: 'Transform',
params: [{ name: 'smoothing', type: 'float', options: [0.001, 0.01, 0.05, 0.1, 0.2, 0.3, 0.5, 0.7, 0.9] }],
params: [{ name: 'smoothing', type: 'float', options: [6, 10, 60, 100, 600] }],
defaultParams: [0.2]
});