nigsp.operations.timeseries.median_cutoff_frequency_idx¶
- nigsp.operations.timeseries.median_cutoff_frequency_idx(energy)[source]¶
Estimate frequency splitting the energy of timeseries in two roughly equal parts.
- Parameters:
- energy
numpy.ndarray The array representing the energy (power) spectral density of a timeseries. this array can be 1D or 2D - if 2D it’s assumed that the second dimension represents subjects.
- energy
- Returns:
intThe index of the frequency that splits the spectral power into two (more or less) equal parts.
- Raises:
NotImplementedErrorIf the provided array is 3D or more.