Description Usage Arguments Details Value Author(s) See Also Examples

Calculate the squared Euclidean distance between pairs of points and return a distance matrix

1 |

`X1` |
a |

`X2` |
an optional |

If `X2 = NULL`

distances between `X1`

and itself are
calculated, resulting in an `nrow(X1)`

-by-`nrow(X1)`

distance
matrix. Otherwise the result is `nrow(X1)`

-by-`nrow(X2)`

and
contains distances between `X1`

and `X2`

.

Calling `distance(X)`

is the same as `distance(X,X)`

The output is a `matrix`

, whose dimensions are described in the Details
section above

Robert B. Gramacy [email protected]

1 2 3 4 5 6 7 8 |

```
```

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.