1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
| # The normalizing constant is evaluated by a (comparatively crude) call
# to the GSL, embodied in a stand-alone piece of C. This must be compiled
# and put someplace R can execute it. It can be found in a file called
# zeta-function.tgz, which should accompanying this code.
# To install it on a Unix system, first make sure GSL is installed.
### > tar xzf zeta-function.tgz
### > cd zeta-function
# At this point, you need to edit the file "Makefile" to give the location of
# the GSL, which on my system is /sw/lib (for the library) and /sw/include
# (for the included files). Then
### > make
### > mv zeta_func yourexecutablepath
# where "yourexecutablepath" is a directory where you can put executable
# files. Then edit the variable "zeta_function_filename" in this file,
# below, to give the full path to the executable program zeta_func.
# This is not the world's slickest installation mechanism, no.
# The location of the external program calculating the zeta function
# Used by zeta_function_once.gsl
zeta_function_filename <- "~/bin/zeta_function"
### EDIT THIS LOCATION!!! #### |
Partager