Discussion:
Use Filtfilt in cpp
maru2012
2018-11-01 16:38:28 UTC
Permalink
Hello,
I wanted to ask you: the octave function "filtfilt". Can I use it from cpp
programs?
I would appreciate it if you would send me examples, please.
Thank you!
Regards



--
Sent from: http://octave.1599824.n4.nabble.com/Octave-General-f1599825.html
Kai Torben Ohlhus
2018-11-01 21:08:00 UTC
Permalink
Post by maru2012
Hello,
I wanted to ask you: the octave function "filtfilt". Can I use it from cpp
programs?
I would appreciate it if you would send me examples, please.
Thank you!
Regards
I would not say that it was impossible, but the "filtfilt" function is a
m-file from the Octave Forge "signal" package. Thus you have to link
against Octave's libraries [1], start the Octave interpreter, load the
signal package and have to invoke the respective function with your C++
data... This sounds like something one should avoid to do. Maybe there is
a C++ library for your intended computations, or you analyze the "filtfilt"
function [2] and signal package and try to call the respective
C++-Functions from Octave without invoking the interpreter.

HTH,
Kai

[1] https://octave.org/doc/interpreter/Standalone-Programs.html
[2] https://sourceforge.net/p/octave/signal/ci/default/tree/inst/filtfilt.m
Sergei Steshenko
2018-11-01 22:09:25 UTC
Permalink
On Thursday, November 1, 2018, 8:21:40 PM GMT+2, maru2012 <***@gmail.com> wrote:

Hello,
I wanted to ask you: the octave function "filtfilt". Can I use it from cpp
programs?
I would appreciate it if you would send me examples, please.
Thank you!
Regards



--
Sent from: http://octave.1599824.n4.nabble.com/Octave-General-f1599825.html


Have a look into https://bitbucket.org/cyrille/cauchy , though I haven't tried it myself.
--Sergei.

Loading...