Localized Polynomial Regression

loess(vx, vy, span) or loess(Mx, vy, span) Returns a vector which interp uses to find a set of second-order polynomials that best fit the neighborhood of x and y data values in vx and vy in the least-squares sense. The size of the neighborhood is controlled by span. Can also be used for multivariate regression, where a matrix Mxy of k independent variables and a vector of dependent values, vy, are used to fit second-order polynomial surfaces in k dimensions.

interp(vs, vx, vy, x) or interp(vs, Mx, vy, X) Returns the interpolated y-value corresponding to x using the output vector vs from loess. If loess has been used to fit a multidimensional surface, X is a vector of independent variables at which to calculate the interpolated y-value.

Arguments:

Notes:

QuickSheet

Related Topics