Giter Site home page Giter Site logo

mathematica-loess's Introduction

This is a simple Mathematica code module for performing LOESS (locally weighted polynomial regression) smoothing on a set of bivariate {{x1,y1}..} scatter plot data.

Usage

In[17]:= (*load some sample data*)

data = {{0.55782, 
  18.6365}, {2.02173, 103.496}, {2.57733, 150.354}, {3.41403, 
  190.51}, {4.30141, 208.701}}

Out[17]= {{0.55782, 18.6365}, {2.02173, 103.496}, {2.57733, 
 150.354}, {3.41403, 190.51}, {4.30141, 208.701}}

In[23]:= (* Evaluate the LOESS approximation for each data point *)

xs = data[[All, 1]];
Table[Loess[#, data, 1, 0.5] &[x], {x, xs}]

Out[24]= {18.6365, 103.496, 150.354, 190.51, 208.701}

For more information about LOESS, see:

en.wikipedia.org/wiki/Local_regression www.itl.nist.gov/div898/handbook/pmd/section1/pmd144.htm

This software is licensed under The MIT License (MIT). See LICENSE.

Files

  • Loess Demonstration.nb

    • A Mathematica notebook demonstrating the usage of the Loess.m module

  • Loess.m

    • A Mathematica code module with the Loess implementation.

  • test_1.csv

  • test_1_expected.csv

    • Test data used to demonstrate and validate the Loess impl.

mathematica-loess's People

Contributors

webmonarch avatar

Stargazers

 avatar

Watchers

 avatar  avatar

Forkers

sunt05 pbt001

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.