Welcome to KStochastic

Navigation

News
Download
Installation
FAQ
Screenshots
Contact

Installation

First you need to download the packages PRNG and UNURAN which can be found at http://statistik.wu-wien.ac.at/prng/ as well as at http://statistik.wu-wien.ac.at/unuran/.

Let us assume the packages are called

  • prng-3.0.2.tar.gz
  • unuran-0.5.0.tar.gz
Save these files in a directory of your choice and type
  • tar xfz prng-3.02.tar.gz
  • tar xfz unuran-0.5.0.tar.gz
to unpack both packages. Change into the prng directory and do the usual
  • ./configure
  • make
  • make install
which installs the prng library on your system.Then go to the unuran directory, In this case it is called unuran-0.5.0 and edit the file `./src/unuran_config.h': Find the lines that read

/* Set type of uniform random number generator.*/
#define UNUR_URNG_TYPE UNUR_URNG_FVOID
/* #define UNUR_URNG_TYPE UNUR_URNG_PRNG */
/* #define UNUR_URNG_TYPE UNUR_URNG_RNGSTREAM */
/* #define UNUR_URNG_TYPE UNUR_URNG_GSL */
/* #define UNUR_URNG_TYPE UNUR_URNG_GENERIC */

Change this to

/* Set type of uniform random number generator.*/
/*#define UNUR_URNG_TYPE UNUR_URNG_FVOID */
#define UNUR_URNG_TYPE UNUR_URNG_PRNG
/* #define UNUR_URNG_TYPE UNUR_URNG_RNGSTREAM */
/* #define UNUR_URNG_TYPE UNUR_URNG_GSL */
/* #define UNUR_URNG_TYPE UNUR_URNG_GENERIC */

i.e. uncomment the second line and comment the first line.This makes sure that we use the prng library for the generation of uniformly distribution random numbers. It is important to first install the PRNG library before installing UNURAN! For further details see the installation instruction of both PRNG and UNURAN. Now go back to the unuran-0.5.0 main directory by typing

  • cd ..
and do
  • ./configure
  • make
  • make install
Installing KStochastic is then very easy. Go back to the kstochastic directory and once again do
  • ./configure
  • make
  • make install
This should install an icon in the Utilities Menu of KDE, which starts the program -- or simply type `kstochastic' on your console.

SourceForge.net Logo