kGradSmooth: First order approximation
Description
Compute first order approximation of function from evaluations and gradient
Usage
kGradSmooth(newPoints, profPoints, profEvals, profGradient)
Arguments
newPoints
vector of points where to approximate the function
profPoints
locations where the function was evaluated
profEvals
value of the evaluation at profPoints
profGradient
value of the gradient at profPoints
Value
approximated values of the function at newPoints