@@ -35,6 +35,17 @@ class Data():
3535 If True, checks the power values and raises an error for any NaN / Inf values.
3636 format : {'power'}
3737 The representation format of the data.
38+
39+ Attributes
40+ ----------
41+ freqs : 1d array
42+ Frequency values for the power spectrum.
43+ power_spectrum : 1d array
44+ Power values, stored internally in log10 scale.
45+ freq_range : list of [float, float]
46+ Frequency range of the power spectrum, as [lowest_freq, highest_freq].
47+ freq_res : float
48+ Frequency resolution of the power spectrum.
3849 """
3950
4051 def __init__ (self , check_freqs = True , check_data = True , format = 'power' ):
@@ -278,7 +289,20 @@ def _prepare_data(self, freqs, powers, freq_range, spectra_dim=1):
278289
279290
280291class Data2D (Data ):
281- """Base object for managing data for spectral parameterization - for 2D data."""
292+ """Base object for managing data for spectral parameterization - for 2D data.
293+
294+ Attributes
295+ ----------
296+ freqs : 1d array
297+ Frequency values for the power spectra.
298+ power_spectra : 2d array
299+ Power values for the group of power spectra, as [n_power_spectra, n_freqs].
300+ Power values are stored internally in log10 scale.
301+ freq_range : list of [float, float]
302+ Frequency range of the power spectra, as [lowest_freq, highest_freq].
303+ freq_res : float
304+ Frequency resolution of the power spectra.
305+ """
282306
283307 def __init__ (self ):
284308 """Initialize Data2D object."""
@@ -362,7 +386,20 @@ def decorated(*args, **kwargs):
362386
363387
364388class Data2DT (Data2D ):
365- """Base object for managing data for spectral parameterization - for 2D transposed data."""
389+ """Base object for managing data for spectral parameterization - for 2D transposed data.
390+
391+ Attributes
392+ ----------
393+ freqs : 1d array
394+ Frequency values for the spectrogram.
395+ spectrogram : 2d array
396+ Power values for the spectrogram, as [n_freqs, n_time_windows].
397+ Power values are stored internally in log10 scale.
398+ freq_range : list of [float, float]
399+ Frequency range of the spectrogram, as [lowest_freq, highest_freq].
400+ freq_res : float
401+ Frequency resolution of the spectrogram.
402+ """
366403
367404 def __init__ (self ):
368405 """Initialize Data2DT object."""
@@ -415,7 +452,20 @@ def plot(self, **plt_kwargs):
415452
416453
417454class Data3D (Data2DT ):
418- """Base object for managing data for spectral parameterization - for 3D data."""
455+ """Base object for managing data for spectral parameterization - for 3D data.
456+
457+ Attributes
458+ ----------
459+ freqs : 1d array
460+ Frequency values for the power spectra.
461+ spectrograms : 3d array
462+ Power values for the spectrograms, organized as [n_events, n_freqs, n_time_windows].
463+ Power values are stored internally in log10 scale.
464+ freq_range : list of [float, float]
465+ Frequency range of the power spectra, as [lowest_freq, highest_freq].
466+ freq_res : float
467+ Frequency resolution of the power spectra.
468+ """
419469
420470 def __init__ (self ):
421471 """Initialize Data3D object."""
0 commit comments