Giter Site home page Giter Site logo

Comments (3)

Vinc0110 avatar Vinc0110 commented on September 23, 2024

Thanks for reporting this. Of course, this case should be caught and the code should not crash.

I guess the reason nobody has run into this is that the setup does not make much sense. Each complex conjugate pole introduces 2 unknowns to solve for. So, for 2 * n_poles_cmplx > npoints, the system is underdetermined.

from scikit-rf.

PinkMushroom avatar PinkMushroom commented on September 23, 2024

yes, but the samples are complex, so it should all work out.

Intuitively shouldn't the order of my polynomial be valid up to the number of samples points ?

If were to use something like Levy/S-K (the original Levy/S-K) I'm pretty sure you could compute a polynomial with an order equal to the number of sample points.

I don't have access to my Levy code right now, but I'll give that a try when I do.

Unless you convince me I'm wrong. and then I'll still give it a try ;-)

edit:
aha. ok, my brain is definitely in the slow lane today. if the polynomial is degree n then it only generates n/2 poles which occur as complex conjugates.
the good news is this is an easy fix. Just tell the user "don't do that !" :-)

from scikit-rf.

Vinc0110 avatar Vinc0110 commented on September 23, 2024

Intuitively shouldn't the order of my polynomial be valid up to the number of samples points ?

Your intuition might the right. It also does not work if I add multiple frequency responses with 2 * n_poles_cmplx samples each. Then, the system is definitely not underdetermined anymore.

This seems to be a real bug in the code. I'll check it in the next days.

from scikit-rf.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.