threshold_annotation
ThresholdAnnotation
Bases: SignalAnnotation
Annotate the locations in a signal where a threshold value is crossed. Only crossings exceeding the threshold value are considered. This means a signal going from a lower value to a higher value than the threshold.
Attributes:
| Name | Type | Description |
|---|---|---|
signals |
ndarray
|
an array of the signals to find peaks in |
threshold |
number
|
a threshold value that must be crossed |
fs = int(1000 / signals.fs)
instance-attribute
threshold = signals.threshold
instance-attribute
__init__(signals)
annotate()
Annotate the indices in a signal where a threshold value is crossed.
The returning array will be of shape (len(signals), max_number_of_crossings)
Returns:
| Type | Description |
|---|---|
ndarray
|
np.ndarray: an array of the crossing indices |