Skip to content

fiducial_point

QrsOffset

Bases: FiducialPoint

area_indicator(signals, window_length) staticmethod

Calculate the onset area indicator for ECG envelope.

Parameters:

Name Type Description Default
signals Signals

N ECG envelope signals with lenght M.

required
window_length int

Moving window length.

required

Returns:

Type Description
ndarray

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

index(peaks, area_indicator, window_length) staticmethod

Parameters:

Name Type Description Default
peaks list

List of R peak indexes.

required
area_indicator ndarray

Area indicator array with local maximums at the QRS complex offsets.

required
window_length int

search window length.

required

Returns:

Name Type Description
list list

List of QRS complex offsets.

QrsOnset

Bases: FiducialPoint

area_indicator(signals, window_length) staticmethod

Calculate the onset area indicator for ECG envelope.

Parameters:

Name Type Description Default
signals Signals

N ECG envelope signals with lenght M.

required
window_length int

Moving window length.

required

Returns:

Type Description
ndarray

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

index(peaks, area_indicator, window_length) staticmethod

Parameters:

Name Type Description Default
peaks list

list of R peak indexes.

required
area_indicator ndarray[M,]

Area indicator array with local maximums at the QRS complex onsets.

required
window_length int

Search window length.

required

Returns:

Name Type Description
list list

List of QRS complex onsets.

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.