If want to send data, double [,] dist, to the function, do i need to include it in the brackets describing the function
the int remdim is being picking up, even though its not in the function, it is making me think I dont need to include double [,] dist in the function
thanks
public static double calcdist(double [,] dist,double [,]coord)
{
int nofrows=5;
for (int i = 0; i< nofrows; i++)
{
for (int j = 0; i< nofrows; i++)
{
dist[i, j] = 0;
for (int k = 0; k<remdim;k++)
{
dist[i, j] = dist[i, j] + Math.Pow((coord[i, k] - coord[j, k]),2);
}
dist[i, j] = dist[i, j]*dist[i,j];//square
}
}
return 1.00;
}

Comment