示例 相關和卷積的關系是卷積要把另一個序列翻轉。 numpy中correlate和convolve的模式: full:輸出M+N-1個序列 same:輸出max{M,N}個 valid:輸出完全重疊時的數值。