Upsample
例題
すべて開く すべて閉じる例 (3)
Upsample[{1, 2, 3}, 3]Upsample[{1, 2, 3}, 3, 2]Upsample[{1, 2, 3}, 3, 2, -1]Upsample[(| | | |
| - | - | - |
| 1 | 2 | 3 |
| 4 | 5 | 6 |
| 7 | 8 | 9 |), 2]//MatrixFormUpsample[[image], 2]スコープ (3)
Upsample[(| | | |
| - | - | - |
| 1 | 2 | 3 |
| 4 | 5 | 6 |
| 7 | 8 | 9 |), {2, 3}]//MatrixFormUpsample[{a, b, c}, 2]Upsample[[image], 2]Upsample[[image], 2, 1]Upsample[[image], 2, 2]Upsample[[image], 2, {1, 2}]Upsample[[image], 2, {1, 2}, LightBlue]アプリケーション (3)
q = LeastSquaresFilterKernel[{"Lowpass", π / 2}, 7]list = Sin[2π / 8Range[0, 7]]res = ListConvolve[q, Upsample[list, 2], 4]ListLinePlot[res]h = {1 / 2, 1, 1 / 2};
x = Range[10];ListConvolve[h, Upsample[x, 2], 1, 0]x2 = N@Range[1000000];
AbsoluteTiming[res1 = ListConvolve[h, Upsample[x2, 2], 1, 0];]より高速の実装は,信号のたたみ込みをフィルタの奇数サンプルおよび風数サンプルと統合させるだろう:
AbsoluteTiming[res2 = Flatten[Transpose[Map[ListConvolve[#1, x2, 1, 0]&, Transpose[Partition[h, 2, 2, {1, 1}, 0]]]]];]res1 == res2k = 4;
h = Array[BartlettWindow, 2k + 1, {-1 / 2, 1 / 2}];
x = Sin[2π / 8Range[0, 7]];res = Flatten[Transpose[Map[ListConvolve[#1, x, Floor[k / 2], 0]&, Transpose[Partition[h, k, k, {1, 1}, 0]]]]];ListPlot[{Transpose[{Range[1, 32, 4], x}], res}, PlotStyle -> {PointSize[Large], Automatic}]関連するガイド
テキスト
Wolfram Research (2012), Upsample, Wolfram言語関数, https://reference.wolfram.com/language/ref/Upsample.html (2016年に更新).
CMS
Wolfram Language. 2012. "Upsample." Wolfram Language & System Documentation Center. Wolfram Research. Last Modified 2016. https://reference.wolfram.com/language/ref/Upsample.html.
APA
Wolfram Language. (2012). Upsample. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/Upsample.html
BibTeX
@misc{reference.wolfram_2026_upsample, author="Wolfram Research", title="{Upsample}", year="2016", howpublished="\url{https://reference.wolfram.com/language/ref/Upsample.html}", note=[Accessed: 04-November-2026]}
BibLaTeX
@online{reference.wolfram_2026_upsample, organization={Wolfram Research}, title={Upsample}, year={2016}, url={https://reference.wolfram.com/language/ref/Upsample.html}, note=[Accessed: 04-November-2026]}