cc_fit_gaussian: Use a gaussian filter on bullet data frame

View source: R/loess.R

cc_fit_gaussianR Documentation

Use a gaussian filter on bullet data frame

Description

A gaussian filter is fit to the surface measurements and residuals are calculated. The most extreme 0.25\ The result is called the raw signature of the bullet land.

Usage

cc_fit_gaussian(ccdata, span = 600)

Arguments

ccdata

The crosscut as returned from x3p_to_df

span

The size, in microns, of the smoothing window. Defaults to 600, which is 24\ 9mm land.

Value

a list of a data frame of the original bullet measurements extended by gaussian filtration, residuals, and two plots: a plot of the fit, and a plot of the bullet's land signature.

Examples

library(dplyr)
ccdata <- data_frame(
  x = seq(0, 6000, 1),
  value = 10 - (3 - x / 1000)^2 + rnorm(length(x), sd = .25)
)
cc_fit_gaussian(ccdata = ccdata)

heike/bulletxtrctr documentation built on March 8, 2024, 7:41 p.m.