extract_freq_clusters¶
- extract_freq_clusters(freq_TFpeaks, sel_freqs)¶
EXTRACT_FREQ_CLUSTERS Identify TFpeak indices that fall within the extent of each frequency cluster
- Usage:
freq_TFpeaks = extract_freq_clusters(freq_TFpeaks, sel_freqs)
- Inputs:
freq_TFpeaks : table - frequency cluster table with peak_lower_freq, peak_upper_freq, and boundary_from_lastpeak columns – required sel_freqs : 1xN double - central frequencies of candidate TFpeaks – required
- Outputs:
freq_TFpeaks : table - input augmented with a TFpeak_idx column (cell of logical vectors)
Notes
Low/high extent per cluster is widened by half the cluster width, and clamped by the trough between adjacent clusters.
See also: extract_maxfreq_peaks, extract_density_curve
∿∿∿ Prerau Laboratory MATLAB Codebase · sleepEEG.org ∿∿∿