Displaying 15 results from an estimated 15 matches for "sunif".
Did you mean:
runif
1999 Feb 24
2
Compiling R on Sunos
...c 2.8.1 on there. It gets to this point:
gcc -g -O2 -I../include -I../../src/include -c bessel_y.c -o bessel_y.o
gcc -g -O2 -I../include -I../../src/include -c choose.c -o choose.o
gcc -g -O2 -I../include -I../../src/include -c snorm.c -o snorm.o
gcc -g -O2 -I../include -I../../src/include -c sunif.c -o sunif.o
sunif.c: In function `unif_rand':
sunif.c:131: `RAND_MAX' undeclared (first use in this function)
sunif.c:131: (Each undeclared identifier is reported only once
sunif.c:131: for each function it appears in.)
sunif.c: In function `Randomize':
sunif.c:213: `NULL' undeclar...
1999 Feb 05
0
Installing R programs (PROBLEMS !!!!)
...gt; We have been trying to install R.0.63 for Unix (SunOS 4.1.4 -
Samira> SPARC 20) and we detected the following problem which makes
Samira> impossible to run R. We have got the following message:
Samira> =======
Samira> gcc -g -O2 -I../include -I../../src/include -c sunif.c -o sunif.o
Samira> sunif.c: In function `unif_rand':
Samira> sunif.c:131: `RAND_MAX' undeclared (first use this function)
Samira> sunif.c:131: (Each undeclared identifier is reported only once
Samira> sunif.c:131: for each function it appears in.)
Samira>...
1999 Feb 05
0
[Fwd] Problems installing R on SunOS 4.1.4
...gt; We have been trying to install R.0.63 for Unix (SunOS 4.1.4 -
Samira> SPARC 20) and we detected the following problem which makes
Samira> impossible to run R. We have got the following message:
Samira> =======
Samira> gcc -g -O2 -I../include -I../../src/include -c sunif.c -o sunif.o
Samira> sunif.c: In function `unif_rand':
Samira> sunif.c:131: `RAND_MAX' undeclared (first use this function)
Samira> sunif.c:131: (Each undeclared identifier is reported only once
Samira> sunif.c:131: for each function it appears in.)
Samira>...
2012 Jan 27
2
The following code (using rgamma) hangs
...dge case.
################################################
#define MATHLIB_STANDALONE
#include <Rmath.h>
int main(void)
{
set_seed(0, 0);
rgamma(1, 1);
}
################################################
If I add the definitions of `get_seed` and `set_seed` from
`src/nmath/standalone/sunif.c` to my code, then the hang disappears.
################################################
#define MATHLIB_STANDALONE
#include <Rmath.h>
/* A version of Marsaglia-MultiCarry */
static unsigned int I1=1234, I2=5678;
void set_seed(unsigned int i1, unsigned int i2)
{
I1 = i1; I2 = i2;
}...
2013 Oct 10
1
Replacing the Random Number Generator in Stand Alone Library
Hi R-Developers,
I had a question about the random number generator used in the R StandAlone
Math Library. The stand-alone library depends on the unif_rand() function
for most simulated values, and this function is provided in the sunif.c file
in the relevant directory. At present, this program implements the
"Marsaglia-Multicarry" algorithm, which is described throughout the R
documentation as:
"A multiply-with-carry RNG is used, as recommended by George Marsaglia in
his post to the mailing list 'sci.stat.ma...
1999 May 04
1
rnorm
Brian
I've been playing a bit with the Wichmann-Hill RNG. I would prefer to have
normally distributed random numbers and I think I have things generally worked
out to use Wichmann-Hill and then Box-Muller. In the process, I was looking at
R's rnorm.c, but could not figure out what transformation is used in R to
convert uniform rv's to normal rv's. Do you know? It looks like there
2002 Apr 30
1
makefile for standalone lib
It appears the Makefile.win in
src/nmath/standalone might need some modification since
cd src/nmath/gnuwin32
make -f Makefile.win
make -f Makefile.win test
fails. However if I remove libRmath.a from line 15
OR
modify lines 67/68 replacing Rmath.a with libRmath.a then
make -f Makefile.win test
goes as expected.
_________________________________________________________________
1997 Dec 13
1
R-beta: Compile error; R-0.60.1, Solaris 2.6, gcc 2.7.2.1
....o
gcc -g -I../include -c lgamma.c -o lgamma.o
gcc -g -I../include -c choose.c -o choose.o
gcc -g -I../include -c dpsifn.c -o dpsifn.o
gcc -g -I../include -c digamma.c -o digamma.o
gcc -g -I../include -c sexp.c -o sexp.o
gcc -g -I../include -c snorm.c -o snorm.o
gcc -g -I../include -c sunif.c -o sunif.o
gcc -g -I../include -c dbeta.c -o dbeta.o
gcc -g -I../include -c pbeta.c -o pbeta.o
gcc -g -I../include -c qbeta.c -o qbeta.o
gcc -g -I../include -c rbeta.c -o rbeta.o
gcc -g -I../include -c dbinom.c -o dbinom.o
gcc -g -I../include -c pbinom.c -o pbinom.o
gcc -g -I../includ...
1999 May 03
1
problems compiling R-0.63.3 on alpha
...ct -g -I../include -I../../src/include -c bessel_y.c -o
bessel_y.o
gcc -ieee_with_inexact -g -I../include -I../../src/include -c choose.c -o
choose.o
gcc -ieee_with_inexact -g -I../include -I../../src/include -c snorm.c -o
snorm.o
gcc -ieee_with_inexact -g -I../include -I../../src/include -c sunif.c -o
sunif.o
gcc -ieee_with_inexact -g -I../include -I../../src/include -c sexp.c -o sexp.o
gcc -ieee_with_inexact -g -I../include -I../../src/include -c dgamma.c -o
dgamma.o
gcc -ieee_with_inexact -g -I../include -I../../src/include -c pgamma.c -o
pgamma.o
gcc -ieee_with_inexact -g -I../incl...
1998 Nov 06
1
DEC alpha INSTALLATION R-0.62.4
...nclude -c beta.c
cc -ieee_with_inexact -g -I../../src/include -c lbeta.c
cc -ieee_with_inexact -g -I../../src/include -c polygamma.c
cc -ieee_with_inexact -g -I../../src/include -c choose.c
cc -ieee_with_inexact -g -I../../src/include -c snorm.c
cc -ieee_with_inexact -g -I../../src/include -c sunif.c
cc -ieee_with_inexact -g -I../../src/include -c sexp.c
cc -ieee_with_inexact -g -I../../src/include -c dgamma.c
cc -ieee_with_inexact -g -I../../src/include -c pgamma.c
cc -ieee_with_inexact -g -I../../src/include -c qgamma.c
cc -ieee_with_inexact -g -I../../src/include -c rgamma.c
cc -ieee_...
1999 May 03
0
compilation of R-0.63.3 on alpha (PR#183)
...nclude -I../../src/include -c bessel_y.c=
-o =
bessel_y.o
gcc -ieee_with_inexact -g -I../include -I../../src/include -c choose.c -=
o =
choose.o
gcc -ieee_with_inexact -g -I../include -I../../src/include -c snorm.c -o=
=
snorm.o
gcc -ieee_with_inexact -g -I../include -I../../src/include -c sunif.c -o=
=
sunif.o
gcc -ieee_with_inexact -g -I../include -I../../src/include -c sexp.c -o =
sexp.o
gcc -ieee_with_inexact -g -I../include -I../../src/include -c dgamma.c -=
o =
dgamma.o
gcc -ieee_with_inexact -g -I../include -I../../src/include -c pgamma.c -=
o =
pgamma.o
gcc -ieee_with_inexac...
1998 Dec 08
0
R compile problems with AIX
..../src/include -c bessel_k.c -o bessel_k.o
gcc -g -O2 -I../include -I../../src/include -c bessel_y.c -o bessel_y.o
gcc -g -O2 -I../include -I../../src/include -c choose.c -o choose.o
gcc -g -O2 -I../include -I../../src/include -c snorm.c -o snorm.o
gcc -g -O2 -I../include -I../../src/include -c sunif.c -o sunif.o
gcc -g -O2 -I../include -I../../src/include -c sexp.c -o sexp.o
gcc -g -O2 -I../include -I../../src/include -c dgamma.c -o dgamma.o
gcc -g -O2 -I../include -I../../src/include -c pgamma.c -o pgamma.o
gcc -g -O2 -I../include -I../../src/include -c qgamma.c -o qgamma.o
gcc -g -O2 -I....
1998 Dec 08
0
R compile problems with AIX
..../src/include -c bessel_k.c -o bessel_k.o
gcc -g -O2 -I../include -I../../src/include -c bessel_y.c -o bessel_y.o
gcc -g -O2 -I../include -I../../src/include -c choose.c -o choose.o
gcc -g -O2 -I../include -I../../src/include -c snorm.c -o snorm.o
gcc -g -O2 -I../include -I../../src/include -c sunif.c -o sunif.o
gcc -g -O2 -I../include -I../../src/include -c sexp.c -o sexp.o
gcc -g -O2 -I../include -I../../src/include -c dgamma.c -o dgamma.o
gcc -g -O2 -I../include -I../../src/include -c pgamma.c -o pgamma.o
gcc -g -O2 -I../include -I../../src/include -c qgamma.c -o qgamma.o
gcc -g -O2 -I....
1998 Sep 11
1
R-beta: cannot make R
...include -c gammalims.c
gcc -g -O2 -I../include -c gamma.c
gcc -g -O2 -I../include -c lgamma.c
gcc -g -O2 -I../include -c beta.c
gcc -g -O2 -I../include -c lbeta.c
gcc -g -O2 -I../include -c polygamma.c
gcc -g -O2 -I../include -c choose.c
gcc -g -O2 -I../include -c snorm.c
gcc -g -O2 -I../include -c sunif.c
gcc -g -O2 -I../include -c sexp.c
gcc -g -O2 -I../include -c dgamma.c
gcc -g -O2 -I../include -c pgamma.c
gcc -g -O2 -I../include -c qgamma.c
gcc -g -O2 -I../include -c rgamma.c
gcc -g -O2 -I../include -c dbeta.c
gcc -g -O2 -I../include -c pbeta.c
gcc -g -O2 -I../include -c qbeta.c
gcc -g -O2 -I....
1999 Jun 09
4
packages with FORTRAN code
Recent sensible changes to the dynload mechanism have made an old
problem resurface: how should we deal with packages which contain
Fortran code and may need to be linked against additional libraries
such as -lf2c?
The current consensus is that extra Fortran libraries maybe needed are
handled via the make variable FLIBS, and that `-lf2c' or `-lg2c' are
added by default if g77 is used.