Displaying 4 results from an estimated 4 matches for "zhliu".
Did you mean:
zhliur
2005 Feb 22
1
include C functions from nmath in my own C functions
Hi:
I am writing a C program which need a gamma random
number generator. I download the source file of R and
compile, make it myself. There is a "rgamma.c"
function in the installing directory of
R("/home/zhliu/Backup/R-2.0.1/src/nmath/rgamma.c"). My
question is how to call this function in my own
program which is in another directory. I can not copy
this "rgamma.c" to my working directory and use
#inclucde"rgamma.c" because in the file "rgamma.c", it
includes other head...
2005 Aug 11
1
include C functions from nmath in my own C functions
Hi:
I followed the README in src/nmath/standalone/
to make the use the command "make shared" to make the
libRmath.so file. I also add the directories containg
libRmath.so to LD_LIBRARY_PATH by using command
"export
D_LIBRARY_PATH=$LD_LIBRARY_PATH:$/home/zhliu/Backup/R-2.0.1/src/nmath/standalon
e
"
However, when I try to run the following codes by the
command "gcc test.c -lRmath" on Linux Fedora Core 2,
/***********************************************/
/* file name test.c */
#define MATHLIB_STANDALONE 1
#include <Rmath.h>...
2005 Aug 11
1
include C functions from nmath in my own C functions
Hi:
I followed the README in src/nmath/standalone/
to make the use the command "make shared" to make the
libRmath.so file. I also add the directories containg
libRmath.so to LD_LIBRARY_PATH by using command
"export
LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$/home/zhliu/Backup/R-2.0.1/src/nmath/standalon
e
"
However, when I try to run the following codes.
/***********************************************/
#define MATHLIB_STANDALONE 1
#include <Rmath.h>
int
main()
{
/* something to force the library to be included */
qnorm(0.7, 0.0, 1.0, 0, 0);...
2010 Nov 25
0
[libsvm] predict function error
Dear R users,
There is a error message when I run the following code. It is used to load
microarray data and use the top 1000 genes for training svm to classify test
set .
> library(e1071)
Loading required package: class
> f=read.table("F:\\lab\\
microarray analysis\\VEH LPS\\exprs.txt",