private double[] CalcVariableCoef(Variogram variogram,KrigingPoint p,List<KrigingPoint> NNPoints){
  int n=NNPoints.size();
  double[] mat=new double[n + 1];
  double dist=0.0;
  for (int i=0; i < n; i++) {
    dist=Math.sqrt(Math.abs(Math.pow(NNPoints.get(i).x - p.x,2)) + Math.abs(Math.pow(NNPoints.get(i).y - p.y,2)));
    mat[i]=getTheoreticalSVValue(dist,variogram);
  }
  mat[n]=1;
  return mat;
}

private double [ ] CalcVariableCoef ( Variogram variogram , KrigingPoint p , List < KrigingPoint > NNPoints ) { int n = NNPoints . size ( ) ; double [ ] mat = new double [ n + 1 ] ; double dist = 0.0 ; for ( int i = 0 ; i < n ; i ++ ) { dist = Math . sqrt ( Math . abs ( Math . pow ( NNPoints . get ( i ) . x - p . x , 2 ) ) + Math . abs ( Math . pow ( NNPoints . get ( i ) . y - p . y , 2 ) ) ) ; mat [ i ] = getTheoreticalSVValue ( dist , variogram ) ; } mat [ n ] = 1 ; return mat ; }
calculates the d matrix for kriging system
