piel.analysis.signals.dc.transfer.metrics

piel.analysis.signals.dc.transfer.metrics#

Functions#

get_out_min_max(→ piel.types.ScalarMetric)

Retrieves the minimum and maximum output voltage values within a specified input voltage range.

get_out_response_in_transition_range(...)

Calculates the equivalent input voltage range (V_in) corresponding to specified thresholds of output voltage (V_out).

Module Contents#

get_out_min_max(collection: piel.types.SignalDCCollection, lower_threshold_ratio: float = 0.1, upper_threshold_ratio: float = 0.9, **kwargs) piel.types.ScalarMetric[source]#

Retrieves the minimum and maximum output voltage values within a specified input voltage range.

Parameters:
  • collection (SignalDCCollection) – The collection of input and output DC signals.

  • lower_threshold_ratio (float, optional) – The lower threshold as a fraction of V_in range (0-1). Defaults to 0.1.

  • upper_threshold_ratio (float, optional) – The upper threshold as a fraction of V_in range (0-1). Defaults to 0.9.

Returns:

Metrics including min and max values of the output voltage in the specified input voltage range.

Return type:

ScalarMetric

get_out_response_in_transition_range(collection: piel.types.SignalDCCollection, lower_threshold_ratio: float = 0.1, upper_threshold_ratio: float = 0.9, transition_type: Literal['analogue', 'digital'] = 'analogue', transition_direction: Literal['positive', 'negative'] = 'positive', **kwargs) piel.types.ScalarMetric[source]#

Calculates the equivalent input voltage range (V_in) corresponding to specified thresholds of output voltage (V_out).

Parameters:
  • collection (SignalDCCollection) – The collection of input and output DC signals.

  • lower_threshold_ratio (float, optional) – The lower threshold as a fraction of V_out’s final value (0-1). Defaults to 0.1.

  • upper_threshold_ratio (float, optional) – The upper threshold as a fraction of V_out’s final value (0-1). Defaults to 0.9.

  • transition_type (Literal["analogue", "digital"], optional) – Type of transition. Defaults to “analogue”.

  • transition_direction (Literal["positive", "negative"], optional) – Direction of transition. Defaults to “positive”.

  • **kwargs – Additional keyword arguments.

Returns:

Metrics including min and max V_in values corresponding to the specified V_out threshold range.

Return type:

ScalarMetric