Coefficient matrices {Rfast}R 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

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

[Package Rfast version 2.1.0 Index]