[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Help-gsl] rayleigh vs complex gaussian

From: Volkan KUMBASAR
Subject: [Help-gsl] rayleigh vs complex gaussian
Date: Wed, 10 Jan 2007 21:33:53 +0200

dear sir,

i am new -a newbie - in this mailing list , so first i will say hello to

my question is simple:
i need to create rayleigh random variables with the variance of 1, to
fading coefficients for my communication system.
fortunately the gsl library provide a function for my aim - the
gsl_ran_rayleigh( r, sigma ).
i use this function in my communication system and get good results.
then i try  to use instead of this function this structure:


// rayleigh = abs( gauss + j * gauss )  , gauss ~ N( 0 , 0.5 )

complex<double> alphaTmp( gsl_ran_gaussian( r, sqrt(0.5)  ) ,
gsl_ran_gaussian( r, sqrt(0.5)  )  );
double alpha = ABS( alphaTmp ); // ABS() is a function which calculates the
absolute value.

if i implement this code in system, i get bad results :(

so for your opinion ; which rayleigh generator structure should i use in my
system ? or
more specifically : can i trust gsl's gsl_ran_rayleigh ?

thank for helping and have a nice day.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]