1
I는 크기 (A)의 이차원 배열 크기 N의 일차원 배열로 변환해야
겹치는 2 차원 배열의 1 차원 배열을 변환 * B> N. 우리는 이러한 경우를 보자가
int oneDimensionalArray[6] = {7, 8, 10, 11, 12, 15};
//then the second array would be
int twoDimensionalArray[2][4] = {{7, 8, 10, 11},
{10, 11, 12, 15}};
이것은 디지털 사운드 프로세싱에 사용되는 소위 중첩 합산 방식에 사용됩니다. 나는 부적절한 결과를 제공 이러한 접근 시도 : 나는 또한 모듈로 연산을 이용하여 관계를 찾는 시도했습니다
for(unsigned long i = 0; i < amountOfWindows; i++)
{
for(unsigned long j = hopSize; j < windowLength; j++)
{
//buffer without the overlapping
if((i * amountOfWindows + j) >= bufferLength)
break;
windowedBuffer[i][j] = unwindowedBuffer[i * amountOfWindows + j];
}
}
for(unsigned long i = 1; i < amountOfWindows; i++)
{
for(unsigned long j = 0; j < hopSize; j++)
{
// Filling the overlapping region
windowedBuffer[i][j] = windowedBuffer[i-1][windowLength - hopSize + i];
}
}
을하지만 오른쪽 하나를 찾을 수 없습니다.
windowedBuffer[m][n % (windowLength - hopSize)] = unwindowedBuffer[n];
그리고'j + 2 * i'? – Jarod42
무슨 소리 야? 그게 뭐야? – Kokos34
중복이 '2'입니다. – Jarod42