Coder Social home page Coder Social logo

Comments (2)

26medias avatar 26medias commented on July 29, 2024

Hi,

I'm glad it's useful :)

I don't know of any reference for this algorithm. It's pretty simple so I'm most likely not the first one to come up with it.

The basic operation is an average between 3 points:
point[x] = ( point[x-1] + point[x+1] ) / 2;

It pretty much ignores the value of the point in the middle and replaces it with the average of the 2 points that surrounds it. It then go forward one position and repeats the operation until the end of the dataset is reached.

This is then repeated multiple times in a row, progressively smoothing the dataset more and more. That number is controlled by the period option in the smoother() method.

If you use smoother({period:1}), then there is a single pass of the smoothing. If you use smoother({period:10}) you'll get 10 successive smoothing.

You can extract the noise out of your dataset (filtering the signals out) by first obtaining a smoothed dataset via smoother() and then simply subtracting the value of each datapoints in the original dataset with the value of the same datapoint in the smoothed data.

from timeseries-analysis.

dieschnittstelle avatar dieschnittstelle commented on July 29, 2024

... great, thanks a lot!

from timeseries-analysis.

Related Issues (16)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.