fitpack
Modern Fortran library for curve and surface fitting with splines
Loading...
Searching...
No Matches
fitpack_parametric.f90 File Reference

Data Types

interface  fitpack_parametric_curves::fitpack_parametric_curve
 Open parametric curve fitter in \( \mathbb{R}^d \). More...
 
type  fitpack_parametric_curves::fitpack_closed_curve
 Closed (periodic) parametric curve fitter. More...
 
type  fitpack_parametric_curves::fitpack_constrained_curve
 Parametric curve fitter with derivative constraints at the endpoints. More...
 

Modules

module  fitpack_parametric_curves
 OOP wrappers for parametric curve fitting in \( \mathbb{R}^d \).
 

Functions/Subroutines

type(fitpack_parametric_curve) function fitpack_parametric_curves::new_from_points (x, u, w, ierr)
 Construct a parametric curve from data points and perform a default fit.
 
integer function fitpack_parametric_curves::new_fit (this, x, u, w, smoothing, order)
 Load new data points and perform a fresh fit.
 
elemental subroutine fitpack_parametric_curves::destroy (this)
 Destroy a parametric curve object and release all allocated memory.
 
elemental subroutine fitpack_parametric_curves::con_destroy (this)
 Destroy a constrained parametric curve, including endpoint constraints.
 
subroutine fitpack_parametric_curves::new_points (this, x, u, w)
 Load new data points into the parametric curve and allocate workspace.
 
elemental subroutine fitpack_parametric_curves::clean_constraints (this)
 Remove all endpoint derivative constraints.
 
subroutine fitpack_parametric_curves::set_constraints (this, ddx_begin, ddx_end, ierr)
 Set or reset endpoint derivative constraints for a constrained parametric curve.
 
real(fp_real) function, dimension(this%idim) fitpack_parametric_curves::curve_eval_one (this, u, ierr)
 Evaluate the parametric curve at a single parameter value.
 
real(fp_real) function, dimension(this%idim, size(u)) fitpack_parametric_curves::curve_eval_many (this, u, ierr)
 Evaluate the parametric curve at multiple parameter values.
 
integer function fitpack_parametric_curves::interpolating_curve (this, order, reset_knots)
 Fit an interpolating parametric spline ( \( s = 0 \)) through the data points.
 
integer function fitpack_parametric_curves::parcur_fit_least_squares (this, smoothing, reset_knots)
 Fit a least-squares parametric spline with fixed knots.
 
integer function fitpack_parametric_curves::curve_fit_automatic_knots (this, smoothing, order, keep_knots)
 Fit a smoothing parametric spline with automatic knot placement.
 
real(fp_real) function, dimension(this%idim) fitpack_parametric_curves::curve_derivative (this, u, order, ierr)
 Evaluate the k-th derivative of the parametric curve at a single parameter value.
 
real(fp_real) function, dimension(this%idim, 0:this%order) fitpack_parametric_curves::curve_all_derivatives (this, u, ierr)
 Evaluate all derivatives \( \mathbf{s}^{(j)}(u) \) for \( j = 0, \ldots, k \).
 
subroutine fitpack_parametric_curves::set_default_parameters (this)
 Compute default parameter values from cumulative chord lengths.
 
real(fp_real) function, dimension(this%idim, size(u)) fitpack_parametric_curves::curve_derivatives (this, u, order, ierr)
 Evaluate the k-th derivative at multiple parameter values.
 
elemental integer(fp_size) function fitpack_parametric_curves::parcur_comm_size (this)
 Return the communication buffer size for the parametric curve.
 
pure subroutine fitpack_parametric_curves::parcur_comm_pack (this, buffer)
 Pack parametric curve data into a communication buffer.
 
pure subroutine fitpack_parametric_curves::parcur_comm_expand (this, buffer)
 Expand parametric curve data from a communication buffer.
 
elemental integer(fp_size) function fitpack_parametric_curves::concur_comm_size (this)
 Return the communication buffer size for the constrained curve.
 
pure subroutine fitpack_parametric_curves::concur_comm_pack (this, buffer)
 Pack constrained curve data into a communication buffer.
 
pure subroutine fitpack_parametric_curves::concur_comm_expand (this, buffer)
 Expand constrained curve data from a communication buffer.
 

Variables

integer, parameter fitpack_parametric_curves::max_k = 5