def tck_1d(self, dimension = 0):
"""Returns tck tuple for use with 1d spline functions
Arguments:
dimension (int): dimension for which to return tck tuple
Returns:
tuple: tck couple as retyurned by splrep
"""
k = self.degree;
p = np.pad(self._parameter[:,dimension], (0,k+1), 'constant');
return (self._knots_all, p, k);
评论列表
文章目录