-
Notifications
You must be signed in to change notification settings - Fork 255
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Elliptic filter #163
Comments
Hello, It is not implemented as of now and yes, there are plans to implement it in future releases (KFR 5.x). |
Hello ! I have been doing some work around this elliptic filter as I needed a generalized version of it. Clang++ is not provided the special mathematical functions like elliptic integral (std::comp_ellip1, etc..). |
I just pushed some thinking. The mainline is based on SciPy package (elllipk, ellipkm1) methods. I pick up the calculation of angles from : https://people.math.sc.edu/Burkardt/cpp_src/elliptic_integral/elliptic_integral.html Nevertheless, my implementation still lag of calculation for the inverse jacobian integral due to double precision limitation To put this in a nutshell, here is the outcome of my test below:
|
Hello, I haven't managed to get rid of this precision issue. That would be really great if this could be implemented in a near future. |
Hello, |
It seems to be MIT license (original?) In the scope of my work, I would like to avoid duplicating libraries. Especially boost if I "just" need to compute elliptic. A native solution would be better for sure |
Sorry for the spam, but do you have any opinion about my previous message ? @dancazarin |
smath.com is a C# wrapper so MIT license is not the license of Cephes library. The original is at https://www.netlib.org/cephes/ and still doesn't mention any license. In strict words, lack of license means no rights to use the code without explicit permission for every project. Scipy team has asked explicit permission from the author to use Cephes in scipy, so did other developers. As an option you may add Cephes to your own fork of KFR if you feel comfortable with using unlicensed (private) code. Also, as I already wrote, it's possible to implement that way: use elliptic functions from boost or std (actual STL implementations already have it) or disable elliptic filters if they cannot be found. Are your toolchain support elliptic functions in std namespace? |
ChatGPT says: "As of my last knowledge update in September 2021, the Cephes library, which provides mathematical functions including elliptic integrals, was typically distributed under a permissive open-source license called the "Cephes Mathematical Library License." This license is quite permissive and allows for both commercial and non-commercial use with minimal restrictions." I am looking for the references now.. ahah |
Perhaps we might ask its author :) ([email protected]) |
The author definitely has better knowledge of the license details of his library compared to ChatGPT. |
Hello,
Is such elliptic filter implemented in KFR DSP ?
I couldn't find any hint from source code, if so is there some plan for that ?
The text was updated successfully, but these errors were encountered: