Python scipy.signal.savgol_filter 示例解释 - 注意:
最编程
2024-03-31 12:37:15
...
模式选项的详细信息:
- ‘mirror’:
Repeats the values at the edges in reverse order. The value closest to the edge is not included.
- ‘nearest’:
The extension contains the nearest input value.
- ‘constant’:
The extension contains the value given by the cval argument.
- ‘wrap’:
The extension contains the values from the other end of the array.
例如,如果输入为 [1, 2, 3, 4, 5, 6, 7, 8],window_length 为 7,则以下显示了各种模式选项的扩展数据(假设 cval 为 0):
mode | Ext | Input | Ext
-----------+---------+------------------------+---------
'mirror' | 4 3 2 | 1 2 3 4 5 6 7 8 | 7 6 5
'nearest' | 1 1 1 | 1 2 3 4 5 6 7 8 | 8 8 8
'constant' | 0 0 0 | 1 2 3 4 5 6 7 8 | 0 0 0
'wrap' | 6 7 8 | 1 2 3 4 5 6 7 8 | 1 2 3
上一篇: POJ-2755 魔法口袋
下一篇: 王弼《周易校注-乾卦》白话译本
推荐阅读
-
Python scipy.signal.correlate2d 示例解释 - 参数:
-
Python scipy.signal.lsim 示例解释 - 注释:
-
Python scipy.signal.decide 示例解释 - 示例:
-
Python torch.nn.Unflatten 示例解释
-
Python sklearn.metrics.precision_score 示例说明 - 注意:
-
Python numpy.savez_compressed 示例解释 - 注释:
-
Python scipy.signal.savgol_filter 示例解释 - 注意:
-
Python base64.b16decode 示例解释
-
Python scipy.signal.resample_poly 示例解释 - 示例:
-
Python scipy.optimize.fmin_cobyla 示例解释 - 参数: