search for: kconst

Displaying 1 result from an estimated 1 matches for "kconst".

Did you mean: const
2008 Mar 12
0
R code for kernel density using kd-tree, looking for speed up
...e times speed up.. Thanks. alsoRun ############################### #points are the d by n matrix of the source points get.diameter = function(box.lower.limit, box.upper.limit) { temp = box.lower.limit - box.upper.limit sqrt(sum(temp*temp))/2 } ######################################## Kconst = function(d, n, bw) { con = gamma(d/2+1)/pi^(d/2); con = con/( (2-2*d)/(d+2) + 2*d*(d+7)/(d+4)/(d+6)); con/n/bw^d; } ################################################################### ## create an empty node newtree = function(){ list(center=NULL, diameter=NULL, left=NULL, right=NULL) }...