added inline to noise and cos_interpolate functions to remove linker errors