distGPS-class {chroGPS} | R Documentation

## Class `"distGPS"`

### Description

Pairwise distances between elements. Function `distGPS` creates objects of this class. `splitDistGPS` in an private class used internally for parallel Multidimensional Scaling.

### Objects from the Class

Objects can be created by calls of the form `new("distGPS", ...)` to generate chroGPS-compliant distance matrices with user-defined metrics. The internal distance matrix can be extracted with the function `"as.matrix"`

### Slots

`d`:

  Object of class `"matrix"` with pairwise dissimilarities (distances) between elements.

`metric`:

  Object of class `"character"` indicating the metric type used for calculating distances. See function `"distGPS"`.

`type`:

  Object of class `"character"`, deprecated.

### Author(s)

Oscar Reina

### Examples

    showClass("distGPS")
    data(s2)
    data(toydists)
    d
    class(as.matrix(d))
    as.matrix(d)[1:5,1:5]

[Package chroGPS version 2.4.0 Index]