skrf.network.average

skrf.network.average(list_of_networks, polar=False)[source]

Calculate the average network from a list of Networks.

This is complex average of the s-parameters for a list of Networks.

Parameters:
  • list_of_networks (list of Network objects) – the list of networks to average

  • polar (boolean, optional) – Average the mag/phase components individually. Default is False.

Returns:

ntwk – the resultant averaged Network

Return type:

Network

Note

This same function can be accomplished with properties of a NetworkSet class.

Examples

>>> ntwk_list = [rf.Network('myntwk.s1p'), rf.Network('myntwk2.s1p')]
>>> mean_ntwk = rf.average(ntwk_list)