Hi All !
I want to some help about K-Medoid in NetLogo . we need at least two indicator 
and I want to create two cluster . the Min Distanace between two point is the 
best Seletion .

this is a pseudo Code for k-Medoids :

for (int i =0 ; i<=NumberOfDataPoint ; i++)
{
  for(int j=0 ; j<=  NumberOfDataPoint ; j++)
    {
      distanceX[j] = Math.Pow ( Xcor[i] - Xcor[j]  , 2 ) ;
      distanceY[j] = Math.Pow ( Ycor[i]-Ycor[j]  , 2 ) ;
     distance[i] + = Math.Sqrt(  distanceX[j] + distanceY[j] );
    }
}
return minimum distance[i];
.....
.....
.....
   

Thanks in advance to any help
Regards

-- 
You received this message because you are subscribed to the Google Groups 
"netlogo-devel" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to