fit_loess {bulletr} | R Documentation |
Fit a loess curve to a bullet data frame
Description
First, the surface measurements of the bullet land is trimmed to be within left and right groove as specified by vector groove
.
A loess regression is fit to the remaining surface measurements and residuals are calculated.
The most extreme 0.25
The result is called the signature of the bullet land.
Usage
fit_loess(bullet, groove, span = 0.75)
Arguments
bullet |
The bullet object as returned from fortify_x3p |
groove |
vector of two numeric values indicating the location of the left and right groove. |
span |
The span to use for the loess regression |
Value
a list of a data frame of the original bullet measurements extended by loess fit, residuals, and standard errors and two plots: a plot of the fit, and a plot of the bullet's land signature.
[Package bulletr version 0.1 Index]