distMoa {mogsa} | R Documentation

## Calculate the distance matrix from an object of class `moa-class`.

### Description

A convenient function to calculate the distance matrix from an object of class `moa-class`.

### Usage

    distMoa(x, nf = NA, tol = 1e-05, method = "euclidean",
      diag = FALSE, upper = FALSE, p = 2)

### Arguments

`x` | An object of class `moa-class`.
`nf` | Integer; the number of component used to calculate the distance. Default setting (NA) will keep all the axes.
`tol` | Numerical; the tolerance of component with low variance.
`method` | passed to function `dist`
`diag` | passed to function `dist`
`upper` | passed to function `dist`
`p` | passed to function `dist`

### Value

An object of class `dist`, see function "dist".

### Author(s)

Chen Meng

### Examples

    # see examples in \code{\link{mbpca}}

    data("NCI60_4arrays")
    moa <- mbpca(NCI60_4arrays, ncomp = 10, k = "all", method = "globalScore", option = "lambda1",
                 center=TRUE, scale=FALSE)

    dst <- distMoa(moa)

[Package mogsa version 1.26.0 Index]