coeff: Coefficient matrices.

View source: R/Dist.R

Coefficient matricesR Documentation

Coefficient matrices.

Description

Coefficient matrices.

Usage

coeff(x, method,vector = FALSE)

Arguments

x

A matrix with data. The distances will be calculated between pairs of rows. In the case of vecdist this is a vector. For the haversine distance it must be a matrix with two columns, the first column is the latitude and the second the longitude.

method

See details for the available methods.

vector

For return a vector instead a matrix.

Details

  • bhattacharyya : \sum \sqrt(P_i * Q_i)

Value

A square matrix with the pairwise coefficients.

Author(s)

Manos Papadakis.

R implementation and documentation: Manos Papadakis <papadakm95@gmail.com>.

See Also

dista, Dist

Examples

x <- matrix(rnorm(50 * 10), ncol = 10)
a1 <- coeff(x,"bhattacharyya")
x<-a1<-NULL

Rfast documentation built on Nov. 9, 2023, 5:06 p.m.