search for: kdtree

Displaying 6 results from an estimated 6 matches for "kdtree".

Did you mean: dtree
2007 Jul 10
1
How to preserve data across function calls in a library package
...tlist; PROTECT(ans=allocMatrix(INTSXP,nrow,k)); //The 2nd argument gives the number of rows, and the last the number of cols see http://cran.r- project.org/doc/manuals/R-exts.html PROTECT(distance=allocMatrix(REALSXP,nrow,k)); ANNpointArray datapoints; ANNpoint qpoint; ANNkd_tree* kdTree; book=Calloc(1,ANN*); foot=Calloc(1,int); book=kdTree; *foot=10; ....... } extern "C" { void do_foo(void){ foo(); } SEXP do_kNN_e(SEXP data, SEXP Nrow, SEXP Ncol,SEXP k,SEXP eps) { return kNN_e(data,Nrow, Ncol, k,eps); } [[alternative HTML version...
2007 Jul 10
1
How to preserve data across function calls in a library package
...tlist; PROTECT(ans=allocMatrix(INTSXP,nrow,k)); //The 2nd argument gives the number of rows, and the last the number of cols see http://cran.r- project.org/doc/manuals/R-exts.html PROTECT(distance=allocMatrix(REALSXP,nrow,k)); ANNpointArray datapoints; ANNpoint qpoint; ANNkd_tree* kdTree; book=Calloc(1,ANN*); foot=Calloc(1,int); book=kdTree; *foot=10; ....... } extern "C" { void do_foo(void){ foo(); } SEXP do_kNN_e(SEXP data, SEXP Nrow, SEXP Ncol,SEXP k,SEXP eps) { return kNN_e(data,Nrow, Ncol, k,eps); } [[alternative HTML version...
1998 Jun 03
0
R-beta: locfit package.
...Best wishes, Mark ---------------------------------------------- wright.ioz.ac.uk> R INSTALL locfit ~/rstuff Installing package `locfit' ... libs cc -ieee_with_inexact -O2 -I/usr/local/R-0.61.1/include -c family.c -o family.o cc -ieee_with_inexact -O2 -I/usr/local/R-0.61.1/include -c kdtree.c -o kdtree.o cc -ieee_with_inexact -O2 -I/usr/local/R-0.61.1/include -c locfit.c -o locfit.o cc -ieee_with_inexact -O2 -I/usr/local/R-0.61.1/include -c S_enter.c -o S_enter.o cc -ieee_with_inexact -O2 -I/usr/local/R-0.61.1/include -c frend.c -o frend.o cc -ieee_with_inexact -O2 -I/usr/lo...
2008 Mar 12
0
R code for kernel density using kd-tree, looking for speed up
...6)); con/n/bw^d; } ################################################################### ## create an empty node newtree = function(){ list(center=NULL, diameter=NULL, left=NULL, right=NULL) } #################################################################################### ## add a node to the kdtree addNode = function(tree, points) { numOfPoints = ncol(points); if(numOfPoints==1) { tree$center = as.vector(points); return(tree); } ########################################################## box.lower.limit = apply(points, 1, min); box.upper.limit = apply(points,...
2010 Nov 19
1
gomp library with Rtools212
...atic-libgcc -o CORElearn.dll tmp.def Rconvert.o Rfront.o binarize.o binarizeReg.o binnode.o binnodeReg.o binpart.o bintree.o bintreeReg.o c45read.o calibrate.o constrct.o constrctReg.o cost.o dataStore.o error.o estCommon.o estOrdAttr.o estimator.o estimatorReg.o expr.o exprReg.o frontend.o ftree.o kdtree.o mathutil.o menu.o model.o modelReg.o mstring.o new_new.o nrutil.o options.o printUtil.o prune.o pruneReg.o random.o regtree.o relieff.o rfRegularize.o rfUtil.o rndforest.o rrelieff.o treenode.o treenodeReg.o trutil.o trutilReg.o utils.o -fopenmp -LC:/Util/R/R-2.12.0/bin/i386 -lR c:/util/rtools/mi...
2000 Feb 22
2
Some problems with R and/or locfit
...... IT SEEMS THUS TO WORK FINE UNTIL : ... gcc -I/usr/lib/R/include -I/usr/lib/R/include/R_ext -mieee-fp -fPIC -O2 -m486 -fno-strength-reduce -g -c weight.c -o weight.o gcc -shared -o /usr/lib/R/library/locfit/libs/locfit.so S_enter.o adap.o band.o density.o family.o fitted.o frend.o kappa0.o kdtree.o lfstr.o linalg.o locfit.o math.o minmax.o nbhd.o odint.o pcomp.o preplot.o random.o scbmax.o simul.o startlf.o vari.o wdiag.o weight.o -L/usr/lib/gcc-lib/i386-redhat-linux/egcs-2.91.66 -L/usr/i386-redhat-linux/lib -lg2c -lm /usr/bin/ld: cannot open -lg2c: No such file or directory <------ HER...