@@ -1255,49 +1255,49 @@ def specgram(x, NFFT=None, Fs=None, detrend=None, window=None,
1255
1255
%(PSD)s
1256
1256
1257
1257
noverlap : int, optional
1258
- The number of points of overlap between blocks. The default
1258
+ The number of points of overlap between blocks. The default
1259
1259
value is 128.
1260
1260
mode : str, optional
1261
- What sort of spectrum to use, default is 'psd'.
1262
-
1263
- 'psd'
1264
- Returns the power spectral density.
1265
-
1266
- 'complex'
1267
- Returns the complex-valued frequency spectrum.
1268
-
1269
- 'magnitude'
1270
- Returns the magnitude spectrum.
1271
-
1272
- 'angle'
1273
- Returns the phase spectrum without unwrapping.
1274
-
1275
- 'phase'
1276
- Returns the phase spectrum with unwrapping.
1261
+ What sort of spectrum to use, default is 'psd'.
1262
+ 'psd'
1263
+ Returns the power spectral density.
1264
+
1265
+ 'complex'
1266
+ Returns the complex-valued frequency spectrum.
1267
+
1268
+ 'magnitude'
1269
+ Returns the magnitude spectrum.
1270
+
1271
+ 'angle'
1272
+ Returns the phase spectrum without unwrapping.
1273
+
1274
+ 'phase'
1275
+ Returns the phase spectrum with unwrapping.
1277
1276
1278
1277
Returns
1279
1278
-------
1280
- spectrum: array_like
1279
+ spectrum : array_like
1281
1280
2-D array, columns are the periodograms of successive segments.
1282
1281
1283
- freqs: array_like
1282
+ freqs : array_like
1284
1283
1-D array, frequencies corresponding to the rows in *spectrum*.
1285
1284
1286
1285
t : array_like
1287
- 1-D array, the times corresponding to midpoints of segments
1286
+ 1-D array, the times corresponding to midpoints of segments
1288
1287
(i.e the columns in *spectrum*).
1289
1288
1290
1289
See Also
1291
1290
--------
1292
- psd : differs in the default overlap; in returning the mean of the segment periodograms; and in not returning times .
1293
- complex_spectrum : A single spectrum, similar to having a single segment when mode is 'complex' .
1294
- magnitude_spectrum : A single spectrum, similar to having a single segment when mode is 'magnitude'.
1295
- angle_spectrum : A single spectrum, similar to having a single segment when mode is 'angle'.
1296
- phase_spectrum : A single spectrum, similar to having a single segment when mode is 'phase'.
1291
+ psd : differs in the overlap and in the return values .
1292
+ complex_spectrum : similar, but with complex valued frequencies .
1293
+ magnitude_spectrum : similar single segment when mode is 'magnitude'.
1294
+ angle_spectrum : similar to single segment when mode is 'angle'.
1295
+ phase_spectrum : similar to single segment when mode is 'phase'.
1297
1296
1298
1297
Notes
1299
1298
-----
1300
1299
detrend and scale_by_freq only apply when *mode* is set to 'psd'.
1300
+
1301
1301
"""
1302
1302
if noverlap is None :
1303
1303
noverlap = 128
0 commit comments