We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
In Chapter 3.2.1, there is an implementation of sliding the filter over the input:
filter = [1, 0, -1] input = [1, 0, 2, -1, 1, 2] output = [] for i in range(len(input) - len(filter)): result = 0 for j in range(len(filter)): result += input[i+j] * filter[j] output.append(result)
The first loop does not catch the last possible slide, so it should be:
filter = [1, 0, -1] input = [1, 0, 2, -1, 1, 2] output = [] for i in range(len(input) - len(filter) + 1): result = 0 for j in range(len(filter)): result += input[i+j] * filter[j] output.append(result)
PS: @EdwardRaff your book is absolutely brilliant!
The text was updated successfully, but these errors were encountered:
Glad you are enjoying it despite some typos! :)
Sorry, something went wrong.
No branches or pull requests
In Chapter 3.2.1, there is an implementation of sliding the filter over the input:
The first loop does not catch the last possible slide, so it should be:
PS: @EdwardRaff your book is absolutely brilliant!
The text was updated successfully, but these errors were encountered: