Learn R Programming

CARS (version 0.2.2)

lin.itp: Linear interpolation

Description

Interpolates desired vector given density estimation.

Usage

lin.itp(x, X, Y)

Arguments

x

the coordinates of points where the density needs to be interpolated

X

the coordinates of the estimated densities

Y

the values of the estimated densities

Value

the interpolated densities

Examples

Run this code
# NOT RUN {
X <- seq(-10,10,length.out=20);
Y <- dnorm(X);
x <- seq(-10,10,length.out=100);
lin.itp(x,X,Y)

# }

Run the code above in your browser using DataLab