detect_sni | R Documentation |
Code obtained and from Kelly et al. 2010
detect_sni(CharData, BandWidth)
CharData |
Matrix of input data with one row per sample, containing:
|
BandWidth |
= Width of moving window for computing SNI |
This function computes SNI as described in Kelly et al. 2010. Note that your data must be interpolated to constant sample resolution (yr/sample) before input to the function. The function makes no assumption about prior analysis on the input CHAR series, i.e. any background and threshold methods may be used. However, input data should still be consistent with the interpretation that a CHAR value (column 2) greater than the corresponding threshold value (column 3) is a "signal" sample, whereas a CHAR value below the threshold is "noise". Refer to Kelly et al. 2010 for details and discussion.
SNI_output is a data list containing the computed SNI and related data, with one row for each row in the input variable CharData:
SNI = the SNI computed for each sample
winInd = indexes of the first and last samples included in each moving
window. E.g. SNI_output["winInd", X]
== (A, B) indicates that the
moving window used to calculate SNI for the Xth sample contained all
samples between A and B, inclusive.
popN = the CHAR values of all samples in the noise (N) population (samples in the moving window with CHAR below threshold)
popS = the CHAR values of all samples in the signal (S) population (samples in the moving window with CHAR at or above threshold)
meanN = mean CHAR of the samples in popN
stdN = standard deviation of the samples in popN
CF = the "correction factor" used in computing SNI. Equal to (v - 2)/v ,where v is the number of samples in popN
Kelly RF, Higuera PE, Barrett CM, Feng Sheng H. 2011 A signal-to-noise index to quantify the potential for peak detection in sediment-charcoal records. Quat. Res. 75, 11-17. (doi:10.1016/j.yqres.2010.07.011)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.