Comments (3)
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.
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.
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)
- Uncertainties in Vector Fitting fit parameters HOT 11
- some observations about vectorfit operation
- Tests are failing HOT 11
- add statics function i.e. violin plots for a number of sample measurements HOT 1
- Analytical Matrix Inversion in subnetwork growth (Filipsson/Compton) vs General Numerical Inversion following Hallbjörner HOT 9
- De-embedding procedure help request HOT 3
- Trying to use pre-commit, doesn't like the .pre-commit-config.yaml regex. HOT 3
- S-parameter calculation incorrect for 3-port circuit HOT 46
- Required keyword argument names HOT 2
- z2s with Complex Reference Impedance HOT 2
- One possible idea to speed up the C attribute of Circuit class HOT 3
- darwin aarch64 skrf/calibration/tests/test_calibration.py failing with divide by zero (determinate calculations) HOT 4
- How to release Network object ? HOT 2
- How to perform port cropping? HOT 3
- Relation of Z-Parameters to Y-Parameters: To be, or not to be HOT 6
- scikit-rf port to .Net C#. Help Needed! HOT 3
- Google Group "scikit-rf" still exists and is full of spam HOT 3
- PR Labeler does not work HOT 1
- skrf.NetworkSet.interpolate_from_params raises exception if any identical parameter values are in a network set where as skrf.NetworkSet.interpolate_from_network using the same parameters does not. HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from scikit-rf.