GithubHelp home page GithubHelp logo

00mjk / smoothing.jl Goto Github PK

View Code? Open in Web Editor NEW

This project forked from paulnakroshis/smoothing.jl

0.0 0.0 0.0 372 KB

A package to smooth time series data in Julia. Currently v1.0 only includes binomial smoothing.

License: MIT License

Julia 100.00%

smoothing.jl's Introduction

Smoothing.jl

A package to smooth time series data in Julia.
Currently v1.0 only includes binomial smoothing.

Takes a 1d data array and smooths the data with a 2Nₚ+1 binomial filter. This is computed using the method outlined in :

Binomial smoothing filter: A way to avoid some pitfalls of least‐squares polynomial smoothing
in Review of Scientific Instruments 54, 1034 (1983); https://doi.org/10.1063/1.1137498

The filter preserves the values starting and ending values of the initial data set.

Example (you can easily manually verify my_data's smoothing is correct.)

Usage:

julia> using Smoothing
julia> my_data = [1.0, 2.0, 3.0, 4.0, 5.0]
julia> Smoothing.binomial(my_data, 1)

5-element Vector{Float64}:
 1.0
 2.0
 3.0
 4.0
 5.0

smoothing.jl's People

Contributors

paulnakroshis avatar

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.