papproxfun: Wrapper of 'stats::approxfun' to generate distribution linear...

Description Usage Arguments Value

Description

dapproxfun applies approxfun to interpolate with splines, but it limits the output values between 0 and 1 to match the behavior of the distribution of probabilities function.

Usage

1

Arguments

...

Any parameters required by approxfun function to specify the interpolation. Typically, this includes the x, y coordinates of the data points.

Value

returns a function performing (linear or constant) interpolation of the given data points. For a given set of x values, this function will return the corresponding interpolated values. It uses data stored in its environment when it was created.


juliosergio/spitools documentation built on May 24, 2019, 5:01 a.m.