Compute Chi-square Distances

Description

A function for computing chi-square distances.

Usage

1
2
3
dist_chisquare(x, diag = FALSE, upper = FALSE)

dist_chisq(x, diag = FALSE, upper = FALSE)

Arguments

x

A numeric matrix (containing coordinates).

diag

Logical specifying whether the diagonal of the resulting distance matrix should be printed.

upper

Logical specifying whether the upper triangle of the resulting distance matrix should be printed.

Value

A distance matrix.

Examples

1
2
3
4
SndT_Fra <- read.table(system.file("extdata", "SndT_Fra.txt", package = "svs"),
   header = TRUE, sep = "\t", quote = "\"", encoding = "UTF-8")
tab.SndT_Fra <- table(SndT_Fra)
dist_chisquare(tab.SndT_Fra)

Questions? Problems? Suggestions? or email at ian@mutexlabs.com.

All documentation is copyright its authors; we didn't write any of that.