documentation: nearest neighbors
Show older comments
Classification using NN: Distance metric definition equations. Impossible to make out exponent of (xs-yt)^? term for Euclidean distance, same for Standard Euclidean and same for Mahalanobis ( Xs - Yt)^ ?, Similar problems with Cosine distance and Correlation distance. I tried zooming to 300 % , still ambiguous.I know what textbooks say these should be and I can check that but wanted to see how Matlab is treating these terms. Suggest you either make these coeff larger, or call then a variable ( like you did for p in other definitions) .
Answers (1)
Walter Roberson
on 30 Apr 2018
0 votes
If you are referring to https://www.mathworks.com/help/stats/classification-using-nearest-neighbors.html then there is no exponent for the Euclidean distance given there. The mark given in the documentation is the ' transpose operator.
Categories
Find more on Nearest Neighbors in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!