fit_point¶
- sofia_redux.toolkit.splines.spline_utils.fit_point(coefficients, spline, spline_mapping, knot_steps, j_rot, n_spline, n_dimensions)[source]¶
Evaluate fitted value given a spline and coefficients.
- Parameters:
- coefficientsnumpy.ndarray (float)
The coefficients of shape (n_coefficients,).
- splinenumpy.ndarray (float)
The spline for the point of shape (n_dimensions, n_spline).
- spline_mappingnumpy.ndarray (int)
The 1-D to N-D spline mapping array as returned by
flat_index_mapping()
. Should be of shape (n_dimensions, n_spline).- knot_stepsnumpy.ndarray (int)
The N-D to 1-D knot mapping steps as returned by
flat_index_mapping()
. Should be of shape (n_dimensions,).- j_rotint
The starting 1-D index on the coefficient array for the given spline.
- n_splineint
The total number of spline coefficients that will be used to perform the fit.
- n_dimensionsint
The number of dimensions in the fit.
- Returns:
- fitted_valuefloat