sysid
Builtin index · Signal processing
result = sysid(freqs, z, [circuit_topology=], [criterion=], [sigma=], [weight=], [n_starts=], [seed=], [max_iter=], [tol=])
Input: freqs, z, circuit_topology, criterion, sigma, weight, n_starts, seed, max_iter, tol · Output: result
What it is
Model selection: fits a ladder of standard topologies and picks one by an information criterion. Arguments are circuit_fit's, and with circuit_topology= (a spec string) it is exactly circuit_fit with one candidate. criterion= is "aic" (default) or "bic".
Overloads
One call shape — this function is not overloaded.
| Code | Input | Output | Description |
result = sysid(freqs, z, [circuit_topology=], [criterion=], [sigma=], [weight=], [n_starts=], [seed=], [max_iter=], [tol=]) | freqs —not documented yetz —not documented yetcircuit_topology string, optionalArguments are circuit_fit's, and with circuit_topology= (a spec string) it is exactly circuit_fit with one candidate.criterion optionalcriterion= is "aic" (default) or "bic".sigma optionalnot documented yetweight optionalnot documented yetn_starts optionalnot documented yetseed optionalnot documented yetmax_iter optionalnot documented yettol optionalnot documented yet | candidates stringthe spec strings tried | Returns the winning fit, with the whole comparison attached: candidates (the spec strings tried), candidate_nparam, candidate_chi2, candidate_aic, candidate_bic — read them, the margin between the first two is often small. The ladder is R-C, R-p(R,C), R-p(R,Q), R-p(R-W,C), R-p(R-W,Q), R-p(R,C)-p(R,C), R-p(R,Q)-p(R,Q). |
Examples
No documentation example calls this form yet. The Signal processing chapter is where one belongs.
How it works
sysid(freqs, z, [circuit_topology=], [criterion=], ...) -- system identification: which circuit, not just which parameters. With circuit_topology= this is circuit_fit with the arguments named differently. Without it, a fixed ladder of standard topologies is fitted and ONE is chosen. The choice is by AIC (or BIC), never by chi-squared, and that is the whole reason this is a separate builtin rather than a loop the caller could write. The candidates are NESTED -- R-p(R,C) is R-p(R,Q) with n pinned to 1, and R-p(R,C)-p(R,C) contains R-p(R,C) -- and a superset can always reach its subset's residual by driving the extra parameters to their degenerate values. Ranking nested models by fit quality therefore ALWAYS returns the largest candidate, whatever the data says. An information criterion is what makes the comparison mean anything, by charging for the parameters. Every candidate is reported, not just the winner: a margin of 0.4 in AIC between two topologies is not a result, and the only way for a reader to see that is to see the column.
From the note above this builtin in the interpreter, where the reasoning was written down as it was built.