Giter Club home page Giter Club logo

dspfunctions's Introduction

DSP Functions

Here are some C++ versions of Matlab DSP Functions, so that you can be saved the trouble of coding them from scratch. I will add more as time goes by.

Required :

  • Intel Performance Primitives 9.0
  • C++11 and above support in your compiler

Nice to Have :

  • CMake (all compilation parameters are specified in the CMake, so you may modify to suit your environment)

List of Functions:

Matlab command :

  • filter

C++ :

  • MovingAvgFilter

*Matlab command :* - circshift

C++ :

  • circshift1D_OP
  • circshift1D_IP
  • circshift (2D)

*Matlab command :* - ifftshift - fftshift

C++ :

  • ifftshift1D
  • fftshift1D
  • ifftshift2D
  • fftshift2D

*Matlab command :* - sort(in, 'ascend') - sort(in, 'descend')

C++ :

  • sort_indexes

*Matlab command :* - cumsum

C++ :

  • cumulativeSum

*Matlab command :* - J:D:K giving a range of elements with D difference between adjacent elements

C++ :

  • colonRangeVec

*Matlab command :* - detrend (linear only)

C++ :

  • detrend_IP
  • detrend_OP

*Taylor Windowing Function (not matlab in-built but IRL internal function) :* - taylor_wt

C++ :

  • Common_TaylorWin

Matlab command :

  • factor

C++ :

  • primeFactor

*find closest and best fft value for input integer *C++ :* - findFFT
*round to number of significant digits *C++ :* - round_to_digits
*Matlab command :* - diff

C++ :

  • diff

*Matlab command :* - geodetic2geocentric, geocentric2lvRotationMatrix, geocentric2lv *C++ :* - geodetic2geocentric, geocentric2lvRotationMatrix, geocentric2lv

Please see CMakeList.txt for the exact build parameters and libraries you need. Note that geocentric2lv requires Eigen for the matrix computations. If you have CentOS7,

yum install eigen3-devel.noarch yum install eigen3-doc.noarch

If you don't have Eigen, and want to compile, just remove all references to the functions in MappingFunctions and from the CMakeLists.txt file.

If this has helped you, kindly help to star this project as a token appreciation. Thanks!

dspfunctions's People

Contributors

lppier avatar

Stargazers

 avatar

Watchers

 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.