distg | R Documentation |
The function computes the distance between locations, with geometric anisotropy.
The parametrization assumes there is a scale parameter, say \sigma
, so that scale
is the distortion for the second component only. The angle rho
must lie in
[-\pi/2, \pi/2]
. The dilation and rotation matrix is
\left(\begin{matrix} \cos(\rho) & \sin(\rho) \\ - \sigma\sin(\rho) & \sigma\cos(\rho) \end{matrix} \right)
distg(loc, scale, rho)
loc |
a |
scale |
numeric vector of length 1, greater than 1. |
rho |
angle for the anisotropy, must be larger than |
a d
by d
square matrix of pairwise distance
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.