UNPKG

moving-averages-js

Version:

The FinTech utility collections of simple, cumulative, and exponential moving averages.

6 lines (3 loc) 155 B
// Exponential moving average with 86% total weight import dma from "./dma"; export default (data: number[], size: number) => dma(data, 2 / (size + 1));