public double empiricalHSIC(TetradMatrix Ky,TetradMatrix Kx,int m){
  TetradMatrix Kyx=Ky.times(Kx);
  double empHSIC=0.0;
  for (int i=0; i < m; i++) {
    empHSIC+=Kyx.get(i,i);
  }
  empHSIC/=Math.pow(m - 1,2);
  return empHSIC;
}

public double empiricalHSIC ( TetradMatrix Ky , TetradMatrix Kx , int m ) { TetradMatrix Kyx = Ky . times ( Kx ) ; double empHSIC = 0.0 ; for ( int i = 0 ; i < m ; i ++ ) { empHSIC += Kyx . get ( i , i ) ; } empHSIC /= Math . pow ( m - 1 , 2 ) ; return empHSIC ; }
empirical unconditional hilbert - schmidt dependence measure for x and y
