piel.analysis.signals.time.core.compose

piel.analysis.signals.time.core.compose#

Functions#

compose_pulses_into_signal(→ piel.types.TimeSignalData)

Composes a full signal from a list of pulses by inserting them into a continuous time array

Module Contents#

compose_pulses_into_signal(pulses: List[piel.types.TimeSignalData], baseline: float = 0.0, noise_std: float | None = None, data_time_signal_kwargs: dict | None = None, start_time_s: float | None = None, end_time_s: float | None = None) piel.types.TimeSignalData[source]#

Composes a full signal from a list of pulses by inserting them into a continuous time array and filling gaps with generated noise.

Parameters:
  • pulses (List[TimeSignalData]) – List of pulse signals to be inserted.

  • baseline (float, optional) – Baseline value of the signal. Defaults to 0.0.

  • noise_std (float, optional) – Standard deviation of the noise to be generated in gaps. If not provided, it is estimated from the pulses.

  • data_time_signal_kwargs (dict, optional) – Additional keyword arguments for DataTimeSignalData.

  • start_time_s (float, optional) – Start time of the composed signal. If not provided, uses the first pulse’s start time.

  • end_time_s (float, optional) – End time of the composed signal. If not provided, uses the last pulse’s end time.

Returns:

The composed full signal with pulses and noise.

Return type:

TimeSignalData