get_lag: Get best lag for two vectors based on cross-correlation

Description Usage Arguments Value

Description

A small piece (b2) is matched to a much larger piece (b1). The lag gives the index location of the best match of b2 in b1. This function is essentially just a wrapper for my_ccf, but adds a plot of the result for convenience.

Usage

1
get_lag(b1, b2, negperc = 10)

Arguments

b1

vector of striation marks (assuming equidistance between values)

b2

(smaller) vector of striation marks

negperc

amount of lead that b2 can have compared to b1

Value

list of lag and correlation achieved. The plot shows b2 on b1


CSAFE-ISU/bulletr documentation built on May 22, 2019, 12:22 p.m.