-
Notifications
You must be signed in to change notification settings - Fork 892
New issue
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
[Book3] Typo in Listing 13? #1563
Comments
@YSakhno what makes it seem weird to you? Chapter 3.7 says that we are using constant PDF over the interval [0, 2]. That alone should tell you the function will return constant value not dependent on If you use the data learned in the book, you should also be able to verify it yourself. We know that integral of the PDF over its interval must be equal to 1 (ie, 100% probability), so: QED |
OK, I was confused by the function |
Oh I see what you mean. In this case There is a bit of inconsistency with function and parameter names in the text. I've raised an issue #1531 in regards to the function parameters. Feel free to drop a note in there to unify function names as well. There was also a relevant issue #1537 which deals with function names used in the code. |
I'll close this one out. |
Shouldn't function
pdf
beinstead of
return 0.5;
?I do not know much, but a function that returns constant value regardless of its input seems weird to me, especially in this context.
The text was updated successfully, but these errors were encountered: