code: private void calMatrix() throws StructureException
  	{
  		int     i, j;
  		double  dis;
  		for(i = 0; i < pro1Len; i ++)   {
  			for(j = 0; j < pro2Len; j ++)   {
  				dis = Calc.getDistance(cod1[i],cod2[j]);
  
  				if(dis < Dc) {
  					sij[i][j] = Dc - dis;
  				}
  				else  {
  					sij[i][j] = 0;
  				}
  			}
  		}
  	}
docs: --------------------------------------------------------------------------------------------------------