Skip to content

Python code implementing the piecewise segmentation of a signal given in input. Three main algorithms (sliding windows, top down and bottom up) are implemented and compared

Notifications You must be signed in to change notification settings

ccube85/Piecewise_Segmentation_Stock_Price

Repository files navigation

Piecewise-Segmentation

In this python code I developed the three main approaches for approximating a signal given as input as a set of segments. The three algorithms implemented are :

  • Sliding windows
  • Top down
  • Bottom up

All these algorithms are implemented and compared

Both interpolation and regression are developed, as shows the pictures here below: Alt text Alt text

In order to run the script:

  • if you want to run the piecewise segmentation interpolation, run main_interpolation.py
  • if you want to run the piecewise segmentation regression, run main_regression.py

Input data comes from two sources:

  • Yahoo API: implemented in method 'draw_window_API'
  • Local Database (not included in the package) : implemented in method 'draw_window'

By default when class method 'draw_window_API'

About

Python code implementing the piecewise segmentation of a signal given in input. Three main algorithms (sliding windows, top down and bottom up) are implemented and compared

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages