SH.diss | R Documentation |
Calculates Sircombe and Hazelton's L2 distance between the Kernel Functional Estimates (KFEs, not to be confused with Kernel Density Estimates!) of two samples with specified analytical uncertainties
SH.diss(x, i, j, c.con = 0)
x |
an object of class |
i |
index of the first sample |
j |
index of the second sample |
c.con |
smoothing bandwidth of the kernel functional estimate |
a scalar value expressing the L2 distance between the KFEs of samples i and j
Keith Sircombe and Martin Hazelton
Sircombe, K. N., and M. L. Hazelton. "Comparison of detrital zircon age distributions by kernel functional estimation." Sedimentary Geology 171.1 (2004): 91-111.
KS.diss
datfile <- system.file("Namib/DZ.csv",package="provenance")
errfile <- system.file("Namib/DZerr.csv",package="provenance")
DZ <- read.distributional(datfile,errfile)
d <- SH.diss(DZ,1,2)
print(d)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.