search for: numofpoint

Displaying 3 results from an estimated 3 matches for "numofpoint".

Did you mean: numofpoints
2004 Aug 12
4
truly object oriented programming in R
...make it possible? Thanks in advance for your help. Java implementation of KD tree: public class Kdnode { private double[] center; //center of the bounding box private double diameter; //maximum distance from center to anywhere within the bounding box private int numOfPoints; //number of source data points in the bounding box private Kdnode left, right; public Kdnode(double[][] points, int split_dim, int [][] sortedIndices, double[][] bBox) { //bBox: the bounding box, 1st row the lower bound, 2nd row the upper bound nu...
2004 Aug 12
9
Giving a first good impression of R to Social Scientists
Dear all, in the coming Winter Semester, I will be a teaching assistant for a course in Survival Analysis. My job will be to do the lab sessions. The software used for these lab sessions will be R. Most of the students have a background in social sciences and the only stats package they used so far is most likely SPSS. So I assume they might be quite surprised the first time they see R
2008 Mar 12
0
R code for kernel density using kd-tree, looking for speed up
...############################################ ## 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, 1, max); tree$center = (box.lower.limit + box....