Coder Social home page Coder Social logo

ivanovicm / spectral-estimation Goto Github PK

View Code? Open in Web Editor NEW
9.0 3.0 2.0 1.31 MB

Various algorithms for spectral estimation. Based on the book "Modern Spectral Estimation - Theory & Application", Steven M. Kay.

License: MIT License

Python 100.00%
spectral-analysis periodogram

spectral-estimation's Introduction

Spectral Estimation

Various algorithms for spectral estimation. Based on the book "Modern Spectral Estimation - Theory & Application", Steven M. Kay.

Methods implemented as a part of this project:

  1. Classical Methods

    • Periodogram
    • Averaged Periodogram
    • Blackman-Tukey Method
  2. Parametric Methods

    • Autocorrelation Method
    • Covariance Method
    • Modified Covariance Method
    • Burg Method

What's the difference between the classical and parametric methods?

Classical spectral estimation methods are based on the Fourier analysis.

On the other hand, it can be shown that if we know a model of a system -- which produces the given signal by propagating white noise -- we can estimate the signal’s PSD. Therefore, all parametric methods consist of choosing an appropriate model and estimating its parameters, along with substituting them into the theoretical PSD expressions.

The results for one classical and one parametric method are shown below.

Average Periodogram Method Estimation Covariance Method Estimation

How to choose the right parameters for these methods?

It's very important to choose the right parameters for an accurate estimation.

"Window closing" is a method for determining a suitable window size for the Blackman-Tukey spectral estimator. On the other hand, all of the prametric methods have a problem of determining a proper order of a model -- p. Criterions that address this problem, FPE, AIC and CAT, are all implemented in this projects, and could be found in the source/utils/ModelOrderSelector.py file.

Window closing on Blackman-Tukey Method Order Selection Illustrated

How to run the tests?

To run any test, simply go to the directory above 'source' and type in the following command in your terminal.

python -m source.test.test_script

The test script can be one of the testing scripts from the directory 'test':

  • test_classical - To test all the Classical Methods
  • test_parametric - To test all the Parametric Methods

If you want to test all implemented solutions for the tasks in the statement, simply go to the directory above 'source' and type in:

  python -m source.test.task

spectral-estimation's People

Contributors

ivanovicm avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

jlu-liufp e71828

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.