Learn R Programming

provenance (version 0.2)

SH.dist: Sircombe and Hazelton distance

Description

Calculates Sircombe and Hazelton's L2 distance between the Kernel Functional Estimates (KFEs) of two samples with specified analytical uncertainties

Usage

SH.dist(x, i, j, c.con = 0)

Arguments

x
an object of class DZdata
i
index of the first sample
j
index of the second sample
c.con
smoothing bandwidth of the kernel functional estimate

References

Sircombe, K. N., and M. L. Hazelton. "Comparison of detrital zircon age distributions by kernel functional estimation." Sedimentary Geology 171.1 (2004): 91-111.

Examples

Run this code
datfile <- system.file("DZ.csv",package="provenance")
errfile <- system.file("DZerr.csv",package="provenance")
DZ <- read.DZdata(datfile,errfile)
d <- SH.dist(DZ,1,2)
print(d)

Run the code above in your browser using DataLab