Use gsl_ran_chisq(r, 3.0) for variates describing the energy.
On Dec 22, 2008, at 10:02 AM, [email protected] wrote:
Message: 2 Date: Mon, 22 Dec 2008 12:31:04 +0100 From: Daniele Nicolodi <[email protected]> Subject: [Help-gsl] Maxwell - Boltzmann distributed random variables To: [email protected] Message-ID: <[email protected]> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Hello, there is in gsl an utility function to obtain random numbers distributed accordingly to the Maxwell - Boltzmann distribution? Should i write it myself using gsl_rand_chi2() or gsl_rand_gamma()? Thanks. Cheers -- Daniele
_______________________________________________ Help-gsl mailing list [email protected] http://lists.gnu.org/mailman/listinfo/help-gsl
