UNPKG

moving-averages-js

Version:

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

12 lines (11 loc) 439 B
"use strict"; // Smoothed moving average var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; }; Object.defineProperty(exports, "__esModule", { value: true }); var dma_1 = __importDefault(require("./dma")); exports.default = (function (data, size, times) { if (times === void 0) { times = 1; } return (0, dma_1.default)(data, times / size, 1); });