function InitializeDistances (dummy)
{
	summingVector = {20,1};
	tracingVector = {20,20};
	for (_d_k=0;_d_k<20;_d_k=_d_k+1)
	{
		summingVector[_d_k] = 1;
		tracingVector[_d_k][_d_k] = 1;
	}	
	return 0;
}

function ComputeDistanceFormula (s1,s2)
{
	GetDataInfo (siteDifferenceCount, filteredData, s1, s2, DISTANCE_AMBIG_OPTION);
	totalDifference    = Transpose(summingVector)*(siteDifferenceCount$tracingVector*summingVector);
	totalSitesCompared = Transpose(summingVector)*(siteDifferenceCount*summingVector);
	return 1-totalDifference[0]/totalSitesCompared[0];
}
