Skip to content

Instantly share code, notes, and snippets.

@martindevans
Created November 4, 2012 20:17
Show Gist options
  • Save martindevans/4013498 to your computer and use it in GitHub Desktop.
Save martindevans/4013498 to your computer and use it in GitHub Desktop.
int qlpShiftDivisor = 1 << qlpShift;
for (int i = order; i < sample.Length; i++)
{
int sum = 0;
for (int j = 0; j < order; j++)
sum += predictorCoefficients[j] * sample[i - j - 1];
sum /= qlpShiftDivisor;
sum += residuals[i - order];
sample[i] = sum;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment