systole.utils.simulate_rr#
- systole.utils.simulate_rr(n_rr: int = 350, extra_idx: List = [50], missed_idx: List = [100], short_idx: List = [150], long_idx: List = [200], ectopic1_idx: List = [250], ectopic2_idx: List = [300], random_state: int = 42, as_peaks: bool = False, artefacts: bool = True) ndarray [source]#
RR time series simulation with artefacts.
- n_rr :
Number of RR intervals. Default is 350.
- extra_idx :
Index of extra interval. Default is [50].
- missed_idx :
Index of missed interval. Default is [100].
- short_idx :
Index of short interval. Default is [150].
- long_idx :
Index of long interval. Default is [200].
- ectopic1_idx :
Index of ectopic interval. Default is [250].
- ectopic2_idx :
Index of ectopic interval. Default is [300].
- random_state :
Random state. Default is 42.
- artefacts :
If True, simulate artefacts in the signal.
- Returns:
- rr
The RR time series.