AD.dist {nsRFA}R Documentation

Anderson-Darling distance matrix for growth curves

Description

Distance matrix for growth curves. Every element of the matrix is the Anderson-Darling statistic calculated between two series.

Usage

 AD.dist (x, cod, index=2)

Arguments

x vector representing data from many samples defined with cod
cod array that defines the data subdivision among sites
index if index=1 samples are divided by their average value; if index=2 (default) samples are divided by their median value

Details

The Anderson-Darling statistic used here is the one defined in http://en.wikipedia.org/wiki/Anderson-Darling_test as A2.

Value

AD.dist returns the distance matrix between growth-curves built with the Anderson-Darling statistic.

Author(s)

Alberto Viglione, e-mail: alviglio@tiscali.it.

References

Viglione A., Laio F., Claps P. (2006) A comparison of homogeneity tests for regional frequency analysis, Water Resourches Research, In press.

Viglione A., Claps P., Laio F. (2006) Utilizzo di criteri di prossimit`a nell'analisi regionale del deflusso annuo, XXX Convegno di Idraulica e Costruzioni Idrauliche - IDRA 2006, Roma, 10-15 Settembre 2006.

Viglione A. (2007) Metodi statistici non-supervised per la stima di grandezze idrologiche in siti non strumentati, PhD thesis, In press.

See Also

traceWminim, roi.

Examples

data(hydroSIMN)

annualflows
summary(annualflows)
x <- annualflows["dato"][,]
cod <- annualflows["cod"][,]

# Ad.dist
AD.dist(x,cod)             # it takes some time

[Package nsRFA version 0.4-2 Index]