Skip to content

A library to generate partial and/or complete log power spectrums of an input signal in C.

License

Notifications You must be signed in to change notification settings

thomasquintana/libspectrum

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

libspectrum

A library to generate partial and/or complete log power spectrums of an input signal in C. The library makes a couple of assumptions listed below which have been hard-coded into the source code.

  • The windowing function is the hann function.
  • The window size is 128.

Installing Dependencies

Install Linux Dependencies (Ubuntu)

sudo apt-get install -y build-essential binutils g++ gcc scons

Install Google Test Framework

$] sudo apt-get install -y libgtest-dev
$] cd /usr/src/gtest
$] sudo cmake CMakeLists.txt
$] sudo make
$] sudo cp *.a /usr/lib

Install Intel Performance Primitives Library

The libspectrum library uses the Intel Performance Primitives Library. When installing this library make sure the install path is changed to /var/lib/intel. If the library is installed to a different location then the IPP_INCLUDEPATH and IPP_LIBPATH variables have to be updated in the SConstruct file located in the the project's root folder.

After the installation is complete create a new file /etc/ld.so.conf.d/intel_ipp.conf and paste the following into it:

/var/lib/intel/compilers_and_libraries_2017.0.098/linux/ipp/lib/intel64

Keep in mind if the library was installed to a different path then the path should be updated in the /etc/ld.so.conf.d/intel_ipp.conf file as well.

Finally, inform the dynamic loader of our new libraries by running the following command:

$] sudo ldconfig

Compiling libspectrum (Static Library)

$] git clone https://github.com/thomasquintana/libspectrum.git
$] cd libspectrum
$] scons

Once, libspectrum is compiled run the unit tests.

$] tests/test_runner

Generating the Docs

$] doxygen Doxyfile

About

A library to generate partial and/or complete log power spectrums of an input signal in C.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published