Constructor for a bspline_1d type (auto knots). This is a wrapper for initialize_1d_auto_knots.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
real(kind=wp), | intent(in), | dimension(:) | :: | x |
|
|
real(kind=wp), | intent(in), | dimension(:) | :: | fcn |
|
|
integer(kind=ip), | intent(in) | :: | kx |
The order of spline pieces in ( ) (order = polynomial degree + 1) |
||
logical, | intent(in), | optional | :: | extrap |
if true, then extrapolation is allowed (default is false) |
pure function bspline_1d_constructor_auto_knots(x,fcn,kx,extrap) result(me) implicit none type(bspline_1d) :: me real(wp),dimension(:),intent(in) :: x !! `(nx)` array of \(x\) abcissae. Must be strictly increasing. real(wp),dimension(:),intent(in) :: fcn !! `(nx)` array of function values to interpolate. `fcn(i)` should !! contain the function value at the point `x(i)` integer(ip),intent(in) :: kx !! The order of spline pieces in \(x\) !! ( \( 2 \le k_x < n_x \) ) !! (order = polynomial degree + 1) logical,intent(in),optional :: extrap !! if true, then extrapolation is allowed !! (default is false) call initialize_1d_auto_knots(me,x,fcn,kx,me%iflag,extrap) end function bspline_1d_constructor_auto_knots