def _krig_matrix(self, src):
"""Sets up the kriging system for a configuration of source points.
"""
var_matrix = self.cov_func(scipy.spatial.distance_matrix(src, src))
ok_matrix = np.ones((len(src) + 1, len(src) + 1))
ok_matrix[:-1, :-1] = var_matrix
ok_matrix[-1, -1] = 0.
return ok_matrix
评论列表
文章目录