Skip to content

NanaVan/data-smooth

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Data Smooth Method

This repo's codes provide a simple data smoother based penalized least squares, known as Whittaker smoother as well. This smoother is extremely fast, gives continuous control over smoothness, interpolates automatically.

Prerequisites

  • Python 3
  • Scipy, Numpy

Usage

Class SIGSMOOTH in signal_smooth.py provides two methods for differenet situation.

  • PLS_expect: a general situation as interval of x-coordinate is equal
  • PLS_interpolation: used as if interval of x-coordinate is not equal

PyScript version

A website data smoother based on PLS_expect with the equal weight of each data point. After loading a .csv file and click smooth, the preliminary result is displayed via bokeh. online tool: vercel

Example

Following the steps in test.py to find a most probable distribution line for data in test.txt, you might have a glance at our method.

License

This repository is licensed under the GNU GPLv3.

About

Whittaker smoother

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published