Re: [R] Kolmogorov Smirnov p-values

2010-09-02 Thread Samsiddhi Bhattacharjee
oops sorryreally careless. thanks ! On Thu, Sep 2, 2010 at 10:03 AM, Alain Guillet wrote: >  Hi, > > Are you sure you don't want to do   ks.test(y, punif, min=0, max=1, > alternative="greater") instead of what you tried? > > Alain > > > On 02-S

[R] Kolmogorov Smirnov p-values

2010-09-02 Thread Samsiddhi Bhattacharjee
I was just testing out ks.test() > y <- runif(1, min=0, max=1) > ks.test(y, runif, min=0, max=1, alternative="greater") One-sample Kolmogorov-Smirnov test data: y D^+ = 0.9761, p-value < 2.2e-16 alternative hypothesis: the CDF of x lies above the null hypothesis > It seems that eve

[R] Problem with compiling shared C/C++ library for loading into R (Linux)

2009-01-10 Thread Samsiddhi Bhattacharjee
Dear all, Sorry about posting this to R-help by mistake. I just realized it belongs to the r-devel list. So I am reposting it there. - I am using the .Call interface to call c++ code from R. For that, I am trying to create a dynamic library (mylib.so) using "R CMD SHLIB" by linking my o

[R] Problem with compiling shared C/C++ library for loading into R (Linux)

2009-01-10 Thread Samsiddhi Bhattacharjee
I am using the .Call interface to call c++ code from R. For that, I am trying to create a dynamic library (mylib.so) using "R CMD SHLIB" by linking my own c++ code and an external c++ library (blitz++). The makefile works fine on my Mac, produces mylib.so and I am able to call .Call() from R, but