public double totalStability(){
  double stability=excessOfMass();
  double cstab=0.;
  for (  TempCluster child : children) {
    cstab+=Math.abs(child.totalStability());
  }
  return stability > cstab ? stability : -cstab;
}

public double totalStability ( ) { double stability = excessOfMass ( ) ; double cstab = 0. ; for ( TempCluster child : children ) { cstab += Math . abs ( child . totalStability ( ) ) ; } return stability > cstab ? stability : - cstab ; }
excess of mass measure .
