piel.base.signal.frequency.transmission#

Functions#

get_phasor_length(→ int)

offset_path_transmission(path_transmission, offset)

Creates a new PathTransmission with the magnitude of the Phasor at the specified

offset_network_transmission_input_magnitude(...)

Creates a new NetworkTransmission with the magnitude of the specified Phasor offset by a given value.

offset_network_transmission_path_magnitude(...)

Creates a new NetworkTransmission with the magnitude of the specified Phasor offset by a given value.

Module Contents#

get_phasor_length(phasor: int | float | List[float] | numpy.ndarray) int[source]#
offset_path_transmission(path_transmission, offset: float)[source]#

Creates a new PathTransmission with the magnitude of the Phasor at the specified index offset by a given value.

Parameters:
  • path_transmission (PathTransmission) – The original PathTransmission instance.

  • index (int) – The index of the Phasor in the transmission list to apply the offset.

  • offset (float) – The value to offset the magnitude by.

Returns:

A new PathTransmission instance with the offset applied.

Return type:

PathTransmission

offset_network_transmission_input_magnitude(network_transmission, offset: float)[source]#

Creates a new NetworkTransmission with the magnitude of the specified Phasor offset by a given value.

Parameters:
  • network_transmission (NetworkTransmission) – The original NetworkTransmission instance.

  • offset (float) – The value to offset the magnitude by.

Returns:

A new NetworkTransmission instance with the offset applied.

Return type:

NetworkTransmission

offset_network_transmission_path_magnitude(network_transmission, path_index: int, offset: float)[source]#

Creates a new NetworkTransmission with the magnitude of the specified Phasor offset by a given value.

Parameters:
  • network_transmission (NetworkTransmission) – The original NetworkTransmission instance.

  • path_index (int) – The index of the PathTransmission in the network list.

  • offset (float) – The value to offset the magnitude by.

Returns:

A new NetworkTransmission instance with the offset applied.

Return type:

NetworkTransmission