dapproxfun: Wrapper of 'stats::approxfun' to generate densities linear...

Description Usage Arguments Value

Description

dapproxfun applies approxfun to interpolate with splines, but it limits the output values to be positive to match the behavior of the density 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.