skrf.networkSet.NetworkSet
- class skrf.networkSet.NetworkSet(ntwk_set=None, name=None)[source]
A set of Networks.
This class allows functions on sets of Networks, such as mean or standard deviation, to be calculated conveniently. The results are returned in
Network
objects, so that they may be plotted and saved in likeNetwork
objects.This class also provides methods which can be used to plot uncertainty bounds for a set of
Network
.The names of the
NetworkSet
properties are generated dynamically upon initialization, and thus documentation for individual properties and methods is not available. However, the properties do follow the convention:>>> my_network_set.function_name_network_property_name
For example, the complex average (mean)
Network
for aNetworkSet
is:>>> my_network_set.mean_s
This accesses the property ‘s’, for each element in the set, and then calculates the ‘mean’ of the resultant set. The order of operations is important.
Results are returned as
Network
objects, so they may be plotted or saved in the same way as forNetwork
objects:>>> my_network_set.mean_s.plot_s_mag() >>> my_network_set.mean_s.write_touchstone('mean_response')
If you are calculating functions that return scalar variables, then the result is accessible through the Network property .s_re. For example:
>>> std_s_deg = my_network_set.std_s_deg
This result would be plotted by:
>>> std_s_deg.plot_s_re()
The operators, properties, and methods of NetworkSet object are dynamically generated by private methods
__add_a_operator()
__add_a_func_on_property()
__add_a_element_wise_method()
__add_a_plot_uncertainty()
thus, documentation on the individual methods and properties are not available.
Attributes
Return the NetworkSet of inverted Networks (Network.inv()). |
|
Return Network of mean magnitude in dB. |
|
Return the list of parameter names stored in the Network of the NetworkSet. |
|
Return a dictionary describing the data type of each parameters. |
|
Return a dictionary containing all parameters and their values. |
|
Return the Network of the standard deviation magnitude in dB. |
Methods
Initialize for NetworkSet. |
|
Animate a property of the networkset. |
|
Copie each network of the network set. |
|
Covariance matrix. |
|
Create a datetime index from networks names. |
|
Call a given method of each element and returns the result as a new NetworkSet if the output is a Network. |
|
Filter NetworkSet based on a string in Network.name. |
|
Create a NetworkSet from a CITI file. |
|
Create a NetworkSet from a directory containing Networks. |
|
Create a NetworkSet from a MDIF file. |
|
Create a NetworkSet from a dictionary of s-parameters |
|
Create a NetworkSet from a zipfile of touchstones. |
|
Check is all Networks in the NetworkSet have a similar params dictionary. |
|
Interpolates each network in the set by frequency by calling |
|
Interpolate a Network from a NetworkSet, as a multi-file N-port network. |
|
Interpolate a Network from given parameters of NetworkSet's Networks. |
|
Converts an attributes of the Networks within a NetworkSet to a Pandas DataFrame. |
|
Plot the uncertainty for the set in units of log-sigma. |
|
Plots mean value of the NetworkSet with minimum and maximum bounds in an Network's attribute. |
|
Call |
|
Call |
|
Call |
|
Plot mean value of a NetworkSet with +/- uncertainty bounds in an Network's attribute. |
|
Call |
|
Call |
|
Plot the total and component-wise uncertainty. |
|
Plots the violin plot of the network set for the desired attribute. |
|
Return n random samples from this NetworkSet. |
|
Return a scalar ndarray representing param data vs freq and element idx. |
|
Select Network(s) in the NetworkSet from a given value of a parameter. |
|
Calls a function on a specific property of the Networks in this NetworkSet. |
|
Visualization of a NetworkSet. |
|
Sort this network set. |
|
Convert attributes of a NetworkSet to a pandas DataFrame. |
|
Return a dictionary representation of the NetworkSet. |
|
Converts a NetworkSet to a dictionary of s-parameters. |
|
Return a 3-tuple of Network objects which contain the mean, upper_bound, and lower_bound for the given Network attribute. |
|
Write the NetworkSet to disk using |
|
Convert a scikit-rf NetworkSet object to a Generalized MDIF file. |
|
Write contents of network to a spreadsheet, for your boss to use. |