help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: I have modified firls.m to include all types of FIRs plus HT and dif


From: je suis
Subject: Re: I have modified firls.m to include all types of FIRs plus HT and diff
Date: Wed, 17 May 2017 12:12:13 +0000

> Write the code in C++ directly.

I used the wrong words. What I meant was: are there any legal issues
if I use the code from firls.m in my program? The program is almost
done, I got here because I needed to verify my implementation and I
saw that Octave's least-squares didn't handle even lengths, or
diffs/HTs, so, one thing led to another...

> So  I'm not sure where you got the A is optional syntax.

I ogled it wrong, but that doesn't change my concern: it looks like W
(or K) can be either W or fType. At first it looked like the
arguments, themselves, don't matter as long as the number is fine, but
then firls(n,f,a,w) and firls(n,f,a,'ftype') both have 4 arguments, so
w can be either a vector or a string. I just find it confusing, and
it's probably a simple check.

What about the 1/f^2 weighting, does anyone know a starting point for
it? I'd rather not just go fishing and hope to catch a boot.

Vlad



reply via email to

[Prev in Thread] Current Thread [Next in Thread]