は最近傍探索を行う
[Neighbors, Distances] = GetNearestNeighbor(Samples, Centers, NormType) [Neighbors] = GetNearestNeighbor(Samples, Centers, NormType)
サンプルを含む行列で、サンプルは行である
中央点を含む行列で、中央点は行である
ベクトルにおけるノルムで、ゼロを超える数で、無限(%inf)である可能性がある
ベクトルで、格サンプルにおける最近点のインデクスを含む
サンプルと中央点間の差を含む行列で、オプショナルである
本関数はサンプルのベクタに最も近いクラスタの中央点を探索する。
Richard O. Duda, Peter E. Hart, David G. Stork, 'Pattern Classification', John Wiley & Sons Inc., New York, Chichester, Weinheim, Brisbane, Singapore, Toronto, Second Edition, 2001