A taper is a mathematical function that exhibits a gradual transition between
the values 0 and 1.
By default, the function value \(f(x)\) is equal to 0
if \(x \le 0\), is equal to 1 if \(x \ge 1\),
and lies between 0 and 1 when \(0 < x < 1\).
If type="cosine"
, the function is the cosine taper
\(f(x) = (1 - \cos(\pi x))/2\).
If type="smooth"
the function is the smooth partition of unity
\(f(x) = \theta(x)/(\theta(x) + \theta(1-x))\)
where \(\theta(x) = \exp(-1/x)\).
If type="Gaussian"
the function is the cumulative distribution
function of the Gaussian (normal) distribution with mean \(1/2\)
and standard deviation \(1/6\).
If zeropoint
and onepoint
are specified, then
the function value is equal to 0 when
x=zeropoint
, equal to 1 when x=onepoint
, and lies
between 0 and 1 when x
lies between zeropoint
and
onepoint
.