periodic_spline Interface

public interface periodic_spline

Constructor for periodic_spline


Contents


Module Procedures

public function new_periodic_spline(x, y, period, drop_last_point, tension) result(spl)

Populates a periodic_spline instance spl representing the periodic data y(x) of length n and periodic on period. Note that the spline library expects period > x(n) - x(1), which means the input data shouldn't include the duplicate periodic point. As a convenience the user can pass data with the duplicate point and set drop_last_point = .true. to automatically exclude the duplicate point.

Arguments

Type IntentOptional Attributes Name
real, intent(in), dimension (:) :: x
real, intent(in), dimension (:) :: y
real, intent(in) :: period
logical, intent(in), optional :: drop_last_point
real, intent(in), optional :: tension

Return Value type(periodic_spline)