Utility function to check whether an object is valid noise list

.check_if_noise(noise, parameter_name)

Arguments

parameter_name

A string containing the name the tested parameter had in the initial function in which it was passed.

Value

TRUE if all tests were passed. Throws an error otherwise.