Forums

Full Version: General questions about ILKNearestNeighbor
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi,

I started working with the ILKNearestNeighbor unit. I looked at the wiki and I modified the example to learn a little about its functionality.

I have two questions about ILKNearestNeighbor:
Why is the example not working with k < 6?
Is it possible to change the distance function? Found nothing about that in the wiki...
Hi Simon,

It works with less than 6, you simply have probably not changed the :

if( AResult.MajorityCount <= 5 ) then

line in the demo. The MajorityCount in that case will be 5 or less :-D .
In the current version, there is no option for custom distance function, I can add it, and send you updated version.

With best regards,
Boian Mitov
Reference URL's