Skip to content

hw1 Ex3.5 noisify test #103

Open
Open
@ubdbra001

Description

@ubdbra001

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions