Just press the green "Download" button on the top of the main page or use the following link https://sourceforge.net/projects/sigpack/files/latest/download also make sure your browser is not blocking downloads.
Hi! Sorry but it only supports the elementary types as in Armadillo. BR Claes
Actually this is already partly handled in SigPack since the filter itself is a class and the internal state will be encapsulated within the class between calls of filter() or the filter operator. That means that consecutive calls to the filter function iir_filt.set_coeffs(b, a); Y1 = iir_filt.filter(X1); Y2 = iir_filt.filter(X2); will behave like the Matlab version [Y1, ZF1] = filter(b,a,X1); [Y2, ZF2] = filter(b,a,X2,ZF1); However, there is no direct function to set and get the internal state....
Hi, glad you are using Sigpack. The group delay of a linear phase FIR filter, of order N (which gives you N+1 coefficients), is N/2 samples. This means that fir1_bp(8,0.35,0.65) will give a group delay of 4 samples and fir1_bp(9,0.35,0.65) will have 4.5. It mimics the Matlab functions and gives more or less bit exact results. Hope this answers your question, you may Google FIR filter group delay if you want some more details. // BR Claes
Hi, it is not necessary to include the <armadillo> header, it is already included in sigpack.h. Use only#include <sigpack.h> Looks like you have extracted sigpack to /usr/include/sigpack then it should be compiled with g++ kalmantesting.cpp -g -I/usr/include/sigpack -larmadillo For more detailed info see sigpack doc
Introducing DaNNet
Hi, thanks for using SigPack. I guess that the reason for you to add the internal states (z) from the filter is that you will call this function at different times and that it will have a "warm" start with the previous filter state. Actually this is already handled in SigPack since the filter itself is a class and the internal state will be encapsulated within the class between calls of filter() or the filter operator. BR Claes
Hi, thanks for using SigPack. Unfortunately I am not that skilled in Windows development. Please have a look at https://docs.microsoft.com/en-us/cpp/build/walkthrough-creating-and-using-a-dynamic-link-library-cpp?view=vs-2019, maybe it can help you in the right direction. BR Claes