Skip to content
Prev 48734 / 398500 Next

adding a method to the dist function

On Mon, 3 May 2004, Prof Brian Ripley wrote:

            
What I meant is that I compute the means and covaraiances before I use
dist. Then I compute the distance between every row with the same interface
as in the current dist. The whole point is that each row in my case does not
represent a data point, but already a mean vector (and covariance matrix) over
a number of data points.

A difference with mahalanobis is that mahalanobis computes the distance
between a data point (or a number of data points) and a distribution, while
bhattacharyya computes the distance between pairs of distributions (in this
respect it is closer to dist in the sense that the two objects involved in
the computation are of the same kind).

Giampiero