Skip to content

Commit

Permalink
chore: add sg example
Browse files Browse the repository at this point in the history
  • Loading branch information
lpatiny committed Oct 8, 2019
1 parent 79a590e commit 6a919fa
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions examples/sg.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
const savitzkyGolay = require('../dist/ml.js').savitzkyGolay;

let result = savitzkyGolay([1, 2, 3, 4, 5, 4, 3, 2, 1], 1, { derivative: 0 });

console.log(result);

0 comments on commit 6a919fa

Please sign in to comment.