
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
holtwinters
Advanced tools
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
npm install holtwinters --save
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
}
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.
FAQs
A javascript port of a Holt-Winters Triple Exponential Smoothing algorithm
We found that holtwinters demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

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.

Security News
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.