added cdf_log and ccdf_log for rayleigh and fixed function signatures