Skip to content
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

hw1 Ex3.5 noisify test #103

Open
ubdbra001 opened this issue Jul 23, 2021 · 0 comments
Open

hw1 Ex3.5 noisify test #103

ubdbra001 opened this issue Jul 23, 2021 · 0 comments

Comments

@ubdbra001
Copy link

Hi,

Just wanted to let you know that the test for the answer to Ex 3.5 in Hw1 doesn't appear to be working properly. I get a correct answer for the following (obviously wrong) code:

function noisify(x::Number, s)
	rand_num = rand()
	noisy_num = x + rand_num
	noisy_num = clamp(noisy_num, 0., 1.)
	return noisy_num
end

Afraid I'm not not sure how to fix it though.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant