Skip to content

t_wave_offset

TWaveOffset

Bases: FiducialPoint

area_indicator(signals, window_length, smoothing_window_length) staticmethod

Calculate an area indicator for ECG.

Parameters:

Name Type Description Default
signals Signals

N ECG signals with lenght M.

required
window_length int

Moving window length.

required
Returs

np.ndarray[N, M]: Area indicator for envelope with same shape as signals.

index(area_indicator, window_length, smoothing_window_length, qrs_onsets, qrs_offsets) staticmethod

Parameters:

Name Type Description Default
area_indicator ndarray

Area indicator array for the T-wave.

required
window_length int

Search window length.

required
smoothing_window_length int

Smoothing window length.

required
qrs_onsets list

List of QRS onset indexes.

required
qrs_offsets list

List of QRS offset indexes.

required

Returns:

Name Type Description
list list

T-wave offsets. If signal ends before last T-wave offset, the end of signal will be taken as offset.

select_offset(area) staticmethod

Select biphasic or monophasic T-wave offset.

Parameters:

Name Type Description Default
area ndarray[L]

Area indicator for T-wave.

required

Returns:

Name Type Description
int int

Index of T-wave offset.