SH.diss: Sircombe and Hazelton distance

Description Usage Arguments Value Author(s) References See Also Examples

View source: R/sircombe.R

Description

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

Usage

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

Arguments

x

an object of class distributional

i

index of the first sample

j

index of the second sample

c.con

smoothing bandwidth of the kernel functional estimate

Value

a scalar value expressing the L2 distance between the KFEs of samples i and j

Author(s)

Keith Sircombe and Martin Hazelton

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.

See Also

KS.diss

Examples

1
2
3
4
5
datfile <- system.file("DZ.csv",package="provenance")
errfile <- system.file("DZerr.csv",package="provenance")
DZ <- read.distributional(datfile,errfile)
d <- SH.diss(DZ,1,2)
print(d)

Example output

[1] 0.0008008441

provenance documentation built on May 5, 2021, 1:06 a.m.