batched_chebyshev_interpolate
batched_chebyshev_interpolate(t_points, x_points, degree=None, lambda_reg=None, penalty='none')
Fit batched Chebyshev interpolants and derivative evaluators.
Parameters:
-
t_points(torch.Tensor of shape (batch_size, n_nodes)) –Fit nodes for each trajectory in the batch.
-
x_points(torch.Tensor of shape (batch_size, n_nodes, ndim)) –Trajectory values at
t_points. -
degree(int or None, default:None) –Polynomial degree. If
None, usen_nodes - 1. -
lambda_reg(float or None, default:None) –Regularization strength.
Noneis treated as0.0. -
penalty((none, l2, velocity, curvature, time - curvature), default:'none') –Regularization type for polynomial coefficients.
'curvature'weights coefficientkbyk^4;'time-curvature'penalizes the squared second derivative in the rescaled time,int_{-1}^{1} |x''(s)|^2 ds(:func:chebyshev_time_curvature_matrix).
Returns:
-
coeffs(torch.Tensor of shape (batch_size, degree + 1, ndim)) –Fitted Chebyshev coefficients.
-
interpolant(callable) –Function mapping
t_evalto interpolated values with shape(batch_size, n_eval, ndim). -
derivative(callable) –Function mapping
t_evalto time derivatives with shape(batch_size, n_eval, ndim). -
bounds(tuple[Tensor, Tensor]) –(a, bmax)batch-wise min/max time bounds used for scaling.