step_hermite Function

public pure function step_hermite(x0, x, wx, order)

Smooth step function based on Hermite interpolation exactly zero for x < wx/2 and one for x > wx/2 see https://en.wikipedia.org/wiki/Smoothstep

Arguments

Type IntentOptional Attributes Name
real(kind=FP), intent(in) :: x0

Position of step

real(kind=FP), intent(in) :: x

Position where function is evaluated

real(kind=FP), intent(in), optional :: wx

Width of step

integer, intent(in), optional :: order

Order of smoothstep function Default value 2

Return Value real(kind=fp)