mhahsler / dbscan

Density Based Clustering of Applications with Noise (DBSCAN) and Related Algorithms - R package

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

kNN crashing (segfault) when matrix has Inf values

yonatans2 opened this issue · comments

The kNN function gave me a segmentation fault when some of the values were infinite. This was fixed by capping the numbers calculated. Apologies for not reproducing the data/code...

Best,
Yonatan

I just checked with some data where I set some values to Inf, but I could not replicate the problem. A small sample of your data would be helpful. Do you use a data.frame or distances as input?