New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

holtwinters

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

holtwinters

A javascript port of a Holt-Winters Triple Exponential Smoothing algorithm

latest
npmnpm
Version
0.0.1
Version published
Maintainers
1
Created
Source

Holt-Winters

Exponential smoothing is a rule of thumb technique for smoothing time series data, particularly for recursively applying as many as three low-pass filters with exponential window functions.

https://en.wikipedia.org/wiki/Exponential_smoothing

Installation

  npm install holtwinters --save

Usage

  var holtWinters = require('holtwinters')
  var getAugumentedDataset = holtWinters.getAugumentedDataset

  var data = [1, 4, 5, 3, 1, 3, 4, 1, 2, 4, 5, 5]
  var predictionLength = 4

  var result = getAugumentedDataset(data, predictionLength)


  console.log(result)
  // OUTPUT:
  {
    augumentedDataset: [1, 4, 5, 3, 1, 3, 4, 1, 2, 4, 5, 5, 1.3338017069503336, 2.9451723210706824, 5.691675635182751, 6.721827583201698],
    alpha: 0.1,
    beta: 1,
    gamma: 0.4,
    period: 5,
    mse: 2.0945071482039226,
    sse: 14.661550037427457,
    mpe: 0.06217855085131068
  }

Contributing

In lieu of a formal styleguide, take care to maintain the existing coding style. Add unit tests for any new or changed functionality. Lint and test your code.

Keywords

holt

FAQs

Package last updated on 31 May 2016

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts