knn search method for retrival
2 ビュー (過去 30 日間)
古いコメントを表示
I can't clearly understand that the matlab function: "Idx = knnsearch(X,Y)" searches for nearest neighbours. But what method it uses for search? I read default method is eucledain but I didn't input any method. I just used [Idx, b] = knnsearch(X,Y,'K',10). So will it use eucledainas the default method?
0 件のコメント
採用された回答
KSSV
2022 年 1 月 9 日
The methods available are:
'euclidean' (default)
'seuclidean'
'cityblock'
'chebychev'
'minkowski'
'mahalanobis'
'cosine'
'correlation'
'spearman'
'hamming'
'jaccard'
Yes, the defualt method is euclidean.
2 件のコメント
KSSV
2022 年 1 月 9 日
You need not to mention. Thr meaning of default is, if you don't use/ mention the method name default method will be used.
その他の回答 (0 件)
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!