gsl_ran_landau_pdf in octave-gsl

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

gsl_ran_landau_pdf in octave-gsl

TROCME Mathieu

Hi there,

And thanks for maintaining and developing Octave.

I'm trying to integrate the function 'gsl_ran_landau_pdf'
https://www.gnu.org/software/gsl/manual/html_node/The-Landau-Distribution.html
to octave using the octave-gsl wrapper
https://sourceforge.net/p/octave/gsl/ci/1.0.8/tree/src/README
since this function is not (yet) available :
https://www.gnu.org/software/octave/doc/interpreter/Random-Number-Generation.html#Random-Number-Generation
https://octave.sourceforge.io/gsl/overview.html

I managed to successfully install octave-gsl using the following set of commands :
# sudo apt-get install mercurial autoconf liboctave-dev
# hg clone http://hg.code.sf.net/p/octave/gsl octave-gsl
# cd octave-gsl/src/
# ./bootstrap
# ./configure
# make
# cd ..
# make install

I also managed to add 'gsl_ran_landau_pdf' without any compilation error
# ./bootstrap && ./configure && make && cd .. && sudo \rm -rf /home/user/octave/gsl-2.0.0 && make install
## checking for gsl_ran_landau_pdf... yes
adding the following lines at the end of the file 'src/buildgsl_sf.sh'
#  export octave_name=gsl_sf_ran_landau_pdf
#  export    funcname=gsl_ran_landau_pdf
#  cat << \EOF > docstring.txt
#  This function computes the probability density p(x) at x for the Landau distribution.
#  See https://www.gnu.org/software/gsl/manual/html_node/The-Landau-Distribution.html
#  EOF
#  ${RT} D_DD >> gsl_sf.cc

Nevertheless I don't see the 'gsl_sf_ran_landau_pdf' function in octave :
# Octave
# >> pkg load gsl
# >> gsl_sf_ <TAB>

Could you please tell me what am I missing ?

Thanks for your time and consideration,
Mathieu

-----------------------------
Mathieu TROCMÉ
CEA/DRT/LIST/DM2I/LCAE
Bât. 516, p. 19c, point courrier 72
91 191 Gif-sur-Yvette cedex, FRANCE
Tel / Fax : +33 (0)16908 2313 / 6030

Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: gsl_ran_landau_pdf in octave-gsl

jbect
Le 03/08/2017 à 11:46, TROCME Mathieu a écrit :

Hi there,

And thanks for maintaining and developing Octave.

I'm trying to integrate the function 'gsl_ran_landau_pdf'
https://www.gnu.org/software/gsl/manual/html_node/The-Landau-Distribution.html
to octave using the octave-gsl wrapper
https://sourceforge.net/p/octave/gsl/ci/1.0.8/tree/src/README
since this function is not (yet) available :
https://www.gnu.org/software/octave/doc/interpreter/Random-Number-Generation.html#Random-Number-Generation
https://octave.sourceforge.io/gsl/overview.html

I managed to successfully install octave-gsl using the following set of commands :
# sudo apt-get install mercurial autoconf liboctave-dev
# hg clone http://hg.code.sf.net/p/octave/gsl octave-gsl
# cd octave-gsl/src/
# ./bootstrap
# ./configure
# make
# cd ..
# make install

I also managed to add 'gsl_ran_landau_pdf' without any compilation error
# ./bootstrap && ./configure && make && cd .. && sudo \rm -rf /home/user/octave/gsl-2.0.0 && make install
## checking for gsl_ran_landau_pdf... yes
adding the following lines at the end of the file 'src/buildgsl_sf.sh'
#  export octave_name=gsl_sf_ran_landau_pdf
#  export    funcname=gsl_ran_landau_pdf
#  cat << \EOF > docstring.txt
#  This function computes the probability density p(x) at x for the Landau distribution.
#  See https://www.gnu.org/software/gsl/manual/html_node/The-Landau-Distribution.html
#  EOF
#  ${RT} D_DD >> gsl_sf.cc

Nevertheless I don't see the 'gsl_sf_ran_landau_pdf' function in octave :
# Octave
# >> pkg load gsl
# >> gsl_sf_ <TAB>

Could you please tell me what am I missing ?

Thanks for your time and consideration,
Mathieu

Hi Mathieu,

I will look into this.

But could you please prepare a changeset [1] for this and post it on the patch tracker [2] ?  Then we can continue the discussion on the tracker.

@++
Julien

[1] https://www.gnu.org/software/octave/doc/v4.0.3/Basics-of-Generating-a-Changeset.html

[2] https://savannah.gnu.org/patch/?group=octave


Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: gsl_ran_landau_pdf in octave-gsl

mtrocme
Loading...