Classify spectral peakedness¶
What it does¶
Returns whether both PKL and AKL meet their respective thresholds, including equality.
When to use it¶
Use it after peakedness to select spectra with sufficient band concentration and relative peak height. Choose thresholds for the analysis rather than treating them as universal quality criteria.
Canonical ID: tools.ispeaky
Inputs¶
| Name | Meaning | Type | Unit | Requirements |
|---|---|---|---|---|
pkl |
Power-concentration peakedness measures. | real vector or matrix | % | NaN allowed; Inf allowed |
akl |
Relative-maximum peakedness measures with the same shape as PKL. | real vector or matrix | % | NaN allowed; Inf allowed |
Parameters¶
| Name | Meaning | Type | Unit | Default | Requirements |
|---|---|---|---|---|---|
pkl_threshold |
Inclusive lower threshold for PKL, between zero and 100. | real scalar | % | not applicable | minimum: 0; maximum: 100 |
akl_threshold |
Inclusive lower threshold for AKL, between zero and 100. | real scalar | % | not applicable | minimum: 0; maximum: 100 |
Outputs¶
| Name | Meaning | Type | Unit |
|---|---|---|---|
is_peaky |
Whether both thresholds are met at each position. | boolean | 1 |
Interpretation and limitations¶
Both thresholds are required percentages between zero and 100. Inputs must have identical shapes; classification preserves that shape. A NaN measure produces false only at that position. With an automatic reference, AKL from a nonzero spectrum is 100, so PKL provides the discrimination.
References¶
- Spyridon Kontaxis et al. (2020). ECG-derived Respiratory Rate in Atrial Fibrillation. IEEE Transactions on Biomedical Engineering. doi:10.1109/TBME.2019.2923587