Coefficient matrices | R Documentation |
Coefficient matrices.
coeff(x, method,vector = FALSE)
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. |
bhattacharyya : \sum \sqrt(P_i * Q_i)
A square matrix with the pairwise coefficients.
Manos Papadakis.
R implementation and documentation: Manos Papadakis <papadakm95@gmail.com>.
dista, Dist
x <- matrix(rnorm(50 * 10), ncol = 10)
a1 <- coeff(x,"bhattacharyya")
x<-a1<-NULL
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.