|
NAMEMath::GSL::QRNG - Quasi-random number generatorsSYNOPSIS# use OO approach use Math::GSL::QRNG; my $QRNG = Math::GSL::QRNG::Sobol->new(2); my @samples = $QRNG->get(); # use GSL interface use Math::GSL::QRNG qw/:all/; DESCRIPTIONThis module interfaces with GNU Scientific Library quasi-random number generators (QRNG).OO InterfaceThe OO Interface described in this documentation is available to all different subclasses, namely:
reinitReinitializes the generator to its starting point. Note that quasi-random sequences do not use a seed and always produce the same set of values.$qrng->reinit(); getRetrieves the next point from the sequence generator. Returns "undef" on error.my @points = $qrng->get(); nameRetrieves the QRNG name.my $name = $qrng->name(); state_sizeReturns the size of the QRNG state.cloneReturns an exact copy of the current QRNG.GSL APIHere is a list of all the functions included in this module :
This module also contains the following constants :
For more informations on the functions, we refer you to the GSL official documentation: <http://www.gnu.org/software/gsl/manual/html_node/> EXAMPLESAUTHORSJonathan "Duke" Leto <jonathan@leto.net> Thierry Moisan <thierry.moisan@gmail.com> Alberto Simo~es <ambs@cpan.org>COPYRIGHT AND LICENSECopyright (C) 2008-2021 Jonathan "Duke" Leto and Thierry MoisanThis program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
Visit the GSP FreeBSD Man Page Interface. |