CepstrumArray[data]
data のパワーケプストラムを計算する.
CepstrumArray[data,type]
data のケプストラムの指定された type を計算する.
CepstrumArray
CepstrumArray[data]
data のパワーケプストラムを計算する.
CepstrumArray[data,type]
data のケプストラムの指定された type を計算する.
詳細とオプション
- ケプストラム解析は,信号処理におけるエコーの特徴付け,たたみ込まれた信号の分離,ピッチ抽出アプリケーションに使われてきた.
- 実ケプストラムは,対数振幅フーリエ(Fourier)スペクトルの逆フーリエ変換として計算される.
- data は次の任意のものでよい.
-
list 任意階数の数値配列またはQuantity配列 audio AudioオブジェクトまたはSoundオブジェクト image 任意のImageオブジェクトまたはImage3Dオブジェクト video Videoオブジェクト - type 指定は次のどちらでもよい.
-
"Power" ![|F^(-1)log(TemplateBox[{{F, (, data, )}}, Abs]^2)|^2 |F^(-1)log(TemplateBox[{{F, (, data, )}}, Abs]^2)|^2](Files/CepstrumArray.ja/1.png)
"Real"
- 多チャンネル画像および音声信号については,CepstrumArrayは各チャンネルについて別々に返される.
- CepstrumArrayはFourierParametersオプションを取る.デフォルト設定はFourierParameters->{1,-1}である.
例題
すべて開く すべて閉じる例 (2)
CepstrumArray[{1, 1, 2, 2, 1, 1, 0, 0}]Audioオブジェクトのケプストラム:
a = Import["ExampleData/rule30.wav"];CepstrumArray[a]ListLinePlot[Take[%, {20, 500}]]スコープ (7)
CepstrumArray[{1, 1, 2, 2, 1, 1, 0, 0}, "Real"]a = RandomComplex[1 + I, {3, 3}];
a//MatrixFormCepstrumArray[a]//MatrixFormSoundのケプストラムを計算する:
a = ExampleData[{"Sound", "Apollo11ReturnSafely"}]CepstrumArray[a]ListLinePlot[Take[%, {20, 500}], PlotRange -> All]多チャンネルAudioオブジェクトのケプストラム:
a = ExampleData[{"Audio", "Bee"}];CepstrumArray[a, "Real"]ListLinePlot[Take[%, All, {20, 500}], PlotRange -> All]CepstrumArray[\!\(\*VideoBox[""]\)]ListLinePlot[Take[%[[1]], {20, 500}], PlotRange -> All]Imageオブジェクトのケプストラム:
a = [image];CepstrumArray[a]MatrixPlot[RotateLeft[Log@%, {150, 150}], PlotTheme -> "Minimal"]a = [image];c = CepstrumArray[a];Dimensions@cTable[MatrixPlot[RotateLeft[Log[cc], Round[Dimensions[cc] / 2]], PlotTheme -> "Minimal"], {cc, c}]アプリケーション (3)
data = Table[2 Sin[0.05π n ] + Sin[0.154 π n] + RandomReal[{-1, 1}] / 10., {n, 0, 1023}];dtf = TransferFunctionModel[(1/1 - 0.8 z^-31), z, SamplingPeriod -> 1]y = RecurrenceFilter[dtf, data];従来のスペクトル分析を使って櫛形フィルタの周期性を識別するのは簡単ではない:
Periodogram[{data, y}]収束のケプストラムは2つの成分のケプストラの合計なので,櫛形フィルタによるピークの識別が簡単である:
ListLinePlot[{CepstrumArray[data][[ ;; 100]], CepstrumArray[y][[ ;; 100]]}, PlotRange -> .2]a = AudioDelay[Import["ExampleData/rule30.wav"], Quantity[0.6, "Seconds"], .6, PaddingSize -> 4]ケプストラムの対数を計算し,後ろ半分を削除する(実ケプストラムは対称である):
cepstrum = CepstrumArray[a];
cepstrum = Log[cepstrum[[ ;; Length[cepstrum] / 2]]];peaks = FindPeaks[cepstrum, 1, 2, -2]ListLinePlot[cepstrum, PlotRange -> All, Epilog -> {Red, Point[peaks]}]quefrency = MaximalBy[peaks, Last][[1, 1]] - 1UnitConvert[N@quefrency / AudioSampleRate[a], "s"]a = ExampleData[{"Sound", "Oboe"}, "Audio"]Periodogram[a, 4000]cepstrum = CepstrumArray[a];
cepstrum = cepstrum[[ ;; Length[cepstrum] / 2]];peaks = FindPeaks[cepstrum, 1, .1]ListLinePlot[cepstrum[[ ;; 1000]], PlotRange -> {0, 1}, Epilog -> {Red, Point[peaks]}]quefrency = MaximalBy[Select[peaks, #[[1]] > 1&], Last][[1, 1]] - 1ff = AudioSampleRate[a] / quefrencyAudioGenerator[{"Sin", ff}]関連するガイド
-
▪
- フーリエ(Fourier)解析 ▪
- 音声解析 ▪
- 音声表現
テキスト
Wolfram Research (2017), CepstrumArray, Wolfram言語関数, https://reference.wolfram.com/language/ref/CepstrumArray.html (2024年に更新).
CMS
Wolfram Language. 2017. "CepstrumArray." Wolfram Language & System Documentation Center. Wolfram Research. Last Modified 2024. https://reference.wolfram.com/language/ref/CepstrumArray.html.
APA
Wolfram Language. (2017). CepstrumArray. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/CepstrumArray.html
BibTeX
@misc{reference.wolfram_2026_cepstrumarray, author="Wolfram Research", title="{CepstrumArray}", year="2024", howpublished="\url{https://reference.wolfram.com/language/ref/CepstrumArray.html}", note=[Accessed: 18-August-2026]}
BibLaTeX
@online{reference.wolfram_2026_cepstrumarray, organization={Wolfram Research}, title={CepstrumArray}, year={2024}, url={https://reference.wolfram.com/language/ref/CepstrumArray.html}, note=[Accessed: 18-August-2026]}