Module to construct and evaluate splines of multivariate datasets
Constructor for linearSpline_t
Constructor for linearSpline_t
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
real(kind=wp), | intent(in), | dimension(:) | :: | t0 | Parameterization data \(t_0\) |
|
real(kind=wp), | intent(in), | dimension(:,:) | :: | x0 | Datapoints for spline \(\vec{x}_0\) |
New spline
Constructor for cubicSpline_t
Constructor for cubicSpline_t
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
real(kind=wp), | intent(in), | dimension(:) | :: | t0 | Parameterization data \(t_0\) |
|
real(kind=wp), | intent(in), | dimension(:,:) | :: | x0 | Datapoints for spline \(\vec{x}_0\) |
|
character(len=*), | intent(in), | optional | :: | method | Derivative calculation method Valid methods are the following: |
|
real(kind=wp), | intent(in), | optional | :: | c | Tension parameter for cardinal splines Not used by other spline types |
New spline
Abstract type from which others derive
Type | Visibility | Attributes | Name | Initial | |||
---|---|---|---|---|---|---|---|
real(kind=wp), | public, | dimension(:), allocatable | :: | t0 | Parameterization variable data |
||
real(kind=wp), | public, | dimension(:,:), allocatable | :: | x0 | Datapoints for spline |
procedure(x_p), public :: x |
Linear spline type
Type | Visibility | Attributes | Name | Initial | |||
---|---|---|---|---|---|---|---|
real(kind=wp), | public, | dimension(:), allocatable | :: | t0 | Parameterization variable data |
||
real(kind=wp), | public, | dimension(:,:), allocatable | :: | x0 | Datapoints for spline |
Constructor for linearSpline_t
private function newLinearSpline(t0, x0) | Constructor for linearSpline_t |
procedure, public :: x => x_linearSpline |
Cubic spline type
Type | Visibility | Attributes | Name | Initial | |||
---|---|---|---|---|---|---|---|
real(kind=wp), | public, | dimension(:), allocatable | :: | t0 | Parameterization variable data |
||
real(kind=wp), | public, | dimension(:,:), allocatable | :: | x0 | Datapoints for spline |
||
real(kind=wp), | public, | dimension(:,:), allocatable | :: | d0 | Derivatives at datapoints \(\vec{x}_0\) |
||
character(len=:), | public, | allocatable | :: | method | Method used to compute derivatives |
||
real(kind=wp), | public | :: | c | Tension parameter for cardinal splines |
Constructor for cubicSpline_t
private function newCubicSpline(t0, x0, method, c) | Constructor for cubicSpline_t |
procedure, public :: x => x_cubicSpline |