search for: nbetween

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

Did you mean: between
2005 Jan 03
0
speed of the cluster.stats function
...ot the library fpc that you built for R, specially the cluster.stats function. In that function, the calculation of G2 index (Goodman & Kruskal) could be really slow as you warned in the help page for that function. That speed problem is due to the double loop for(i in 1:nwithin) for(j in 1:nbetween). I came up with a solution (probably not the best, but ....) that is really faster than your's (with all due respect). (You can see the speed calculation above). What i did was just vectorizing the second loop. See the code in the patch above. Could be a good thing for the next fpc releas...