POD cleanup and basic Histogram POD.
[Math-GSL.git] / QRNG.i
blob6c8e6ad8e02d4eae9f90ea3e84cfdc22afecdc2c
1 %module QRNG
3 %include "typemaps.i"
5 %apply double *OUTPUT { double x[] };
7 %{
8 #include "gsl/gsl_types.h"
9 #include "gsl/gsl_qrng.h"
12 %include "gsl/gsl_types.h"
13 %include "gsl/gsl_qrng.h"
15 %perlcode %{
17 @EXPORT_OK = qw($gsl_qrng_niederreiter_2 $gsl_qrng_sobol $gsl_qrng_halton $gsl_qrng_reversehalton
18 gsl_qrng_alloc gsl_qrng_memcpy gsl_qrng_clone
19 gsl_qrng_free gsl_qrng_init gsl_qrng_name
20 gsl_qrng_size gsl_qrng_state gsl_qrng_get
22 %EXPORT_TAGS = ( all => [ @EXPORT_OK ] );
25 __END__
27 =head1 NAME
29 Math::GSL::QRNG - Quasi-random number generator
31 =head1 SYNOPSIS
33 use Math::GSL::QRNG qw/:all/;
35 =head1 DESCRIPTION
37 Here is a list of all the functions included in this module :
39 =over
41 =item C<gsl_qrng_alloc($T, $n)> - This function returns a pointer to a newly-created instance of a quasi-random sequence generator of type $T and dimension $d. The type $T must be one of the constants included in this module.
44 =item C<gsl_qrng_clone>
46 =item C<gsl_qrng_memcpy> -
48 =item C<gsl_qrng_free($q)> - This function frees all the memory associated with the generator $q.
50 =item C<gsl_qrng_init($q)> - This function reinitializes the generator $q to its starting point. Note that quasi-random sequences do not use a seed and always produce the same set of values.
52 =item C<gsl_qrng_name($q)> - This function returns a pointer to the name of the generator $q.
54 =item C<gsl_qrng_size>
56 =item C<gsl_qrng_state>
58 =item C<gsl_qrng_get>
60 =back
62 This module also contains the following constants :
64 =over
66 =item C<$gsl_qrng_niederreiter_2>
68 =item C<$gsl_qrng_sobol>
70 =item C<$gsl_qrng_halton>
72 =item C<$gsl_qrng_reversehalton>
74 =back
76 For more informations on the functions, we refer you to the GSL offcial documentation: L<http://www.gnu.org/software/gsl/manual/html_node/>
78 Tip : search on google: site:http://www.gnu.org/software/gsl/manual/html_node/ name_of_the_function_you_want
81 =head1 EXAMPLES
83 =head1 AUTHOR
85 Jonathan Leto <jonathan@leto.net> and Thierry Moisan <thierry.moisan@gmail.com>
87 =head1 COPYRIGHT AND LICENSE
89 Copyright (C) 2008 Jonathan Leto and Thierry Moisan
91 This program is free software; you can redistribute it and/or modify it
92 under the same terms as Perl itself.
94 =cut