|
fitpack
Modern Fortran library for curve and surface fitting with splines
|
Derived type describing a periodic curve. No changes are made to the storage, but the appropriate package functions will be called depending on the type. More...


Additional Inherited Members | |
Public Member Functions inherited from fitpack_curves::fitpack_curve | |
| procedure | destroy (this) |
| Clean memory. | |
| procedure | new_points (this, x, y, w) |
| Set new points. | |
| procedure | new_fit (this, x, y, w, smoothing, order) |
| Generate new fit. | |
| procedure | fit (this, smoothing, order, keep_knots) |
| Generate/update fitting curve, with optional smoothing. | |
| procedure | interpolate (this, order, reset_knots) |
| Fit an interpolating spline ( \( s = 0 \)) through the data points. | |
| procedure | least_squares (this, smoothing, reset_knots) |
| Fit a least-squares spline with fixed knots. | |
| generic | eval (this, x, ierr) |
| Evaluate curve at given coordinates. | |
| generic | eval (this, x) |
| Evaluate the spline at a single point (pure, returns NaN on error). | |
| generic | eval (this, x, ierr) |
| Evaluate the spline at multiple points (with error flag). | |
| generic | eval (this, x) |
| Evaluate the spline at multiple points (pure, returns NaN on error). | |
| procedure | integral (this, from, to) |
| Integrate. | |
| procedure | fourier_coefficients (this, alpha, a, b, ierr) |
| Fourier coefficients. | |
| procedure | zeros (this, ierr) |
| Find the zeros of a spline s(x), only if it is cubic. | |
| generic | dfdx (this, x, order, ierr) |
| Evaluate derivative at given coordinates. | |
| generic | dfdx (this, x, order, ierr) |
| Evaluate the k-th derivative at multiple points (with error flag). | |
| generic | dfdx_all (this, x, ierr) |
| Evaluate all derivatives \( s^{(j)}(x) \) for \( j = 0, \ldots, k \) (with error flag). | |
| generic | dfdx_all (this, x) |
| Evaluate all derivatives \( s^{(j)}(x) \) for \( j = 0, \ldots, k \) (pure, NaN on error). | |
| generic | insert_knot (this, x, ierr) |
| Insert knot(s) into the spline representation. | |
| generic | insert_knot (this, x, ierr) |
| Insert multiple knots into the B-spline representation. | |
| procedure | comm_size (this) |
| Parallel communication interface (size/pack/expand) | |
| procedure | comm_pack (this, buffer) |
| Pack curve data into a communication buffer for parallel transfer. | |
| procedure | comm_expand (this, buffer) |
| Expand curve data from a communication buffer. | |
| type(fitpack_curve) function | new_from_points (x, y, w, ierr) |
| Construct a fitpack_curve from data points and perform a default fit. | |
Public Member Functions inherited from fitpack_fitters::fitpack_fitter | |
| procedure, non_overridable | mse (this) |
| MSE accessor (shared by all types) | |
| procedure, non_overridable | core_comm_size (this) |
| Base field helpers for comm (non-overridable, called by subtypes) | |
| procedure, non_overridable | core_comm_pack (this, buffer) |
| Pack base fields into communication buffer. | |
| procedure, non_overridable | core_comm_expand (this, buffer) |
| Expand base fields from communication buffer. | |
| procedure, non_overridable | destroy_base (this) |
| Base field reset (called by subtype destroy methods) | |
| procedure(comm_size_if), deferred | comm_size (this) |
| Deferred communication interface. | |
| procedure(comm_pack_if), deferred | comm_pack (this, buffer) |
| procedure(comm_expand_if), deferred | comm_expand (this, buffer) |
Public Attributes inherited from fitpack_curves::fitpack_curve | |
| integer(fp_size) | m = 0 |
| The data points. | |
| real(fp_real), dimension(:), allocatable | x |
| real(fp_real), dimension(:), allocatable | y |
| integer(fp_size) | order = 3 |
| Spline degree. | |
| real(fp_real) | xleft |
| Interval boundaries. | |
| real(fp_real) | xright |
| real(fp_real), dimension(:), allocatable | sp |
| real(fp_real), dimension(:), allocatable | w |
| integer(fp_size) | nest = 0 |
| real(fp_real), dimension(:,:), allocatable | wrk_fou |
| integer(fp_flag) | bc = OUTSIDE_NEAREST_BND |
| integer(fp_size) | knots = 0 |
| real(fp_real), dimension(:), allocatable | t |
Public Attributes inherited from fitpack_fitters::fitpack_fitter | |
| integer(fp_flag) | iopt = IOPT_NEW_SMOOTHING |
| Fitting state flag. | |
| real(fp_real) | smoothing = 1000.0_FP_REAL |
| Smoothing parameter. | |
| real(fp_real) | fp = zero |
| Weighted sum of squared residuals. | |
| real(fp_real), dimension(:), allocatable | c |
| B-spline coefficients. | |
| integer(fp_size) | lwrk = 0 |
| Real workspace and its size. | |
| real(fp_real), dimension(:), allocatable | wrk |
| integer(fp_size) | liwrk = 0 |
| Integer workspace and its size. | |
| integer(fp_size), dimension(:), allocatable | iwrk |
Derived type describing a periodic curve. No changes are made to the storage, but the appropriate package functions will be called depending on the type.