curve_t Interface

public interface curve_t

Create a new curve from a sequence of points.


Module Procedures

private function new_curve(points, method, extrap) result(c)

Create a new curve from a sequence of points.

The curve is given by a sequence of points in nD space, interpolation method, and extrapolation setup. Supported interpolation methods are

  • linear for piecewise linear interpolation (i.e. polyline)
  • pchip for piecewise cubic Hermite interpolating polynomial (default)

Supported extrapolation methods are

  • extrap for linear extrapolation (default)
  • NaN for NaN extrapolation

Arguments

Type IntentOptional Attributes Name
real(kind=rkind), intent(in) :: points(:,:)

The points that define the curve

character(len=*), intent(in), optional :: method

The interpolation method,

character(len=*), intent(in), optional :: extrap

Return Value type(curve_t)