Skip to content
Prev 67698 / 398513 Next

n-dimensional(hypercube)distance calculation..

On Thu, 14 Apr 2005 achilleas.psomas at wsl.ch wrote:
The `centers' are the means?  by() can find the mean of multivariate data
by group.  And dist() finds Euclidean and other distances.

However, the Jeffries-Matusita distance depends on covariance matrices,
and 50 points in 100 dims are not enough to estimate one.  Indeed my 
concern is that you have so few data that either the measurements are 
highly correlated (so you can just select a few) or your inferences will 
be suspect.
It would be helpful to know how you have stored them.
Which hypercube?  If you mean the bounding box, use apply or lapply with
range().