distMoa: Calculate the distance matrix from an object of class...

Description Usage Arguments Value Author(s) Examples

View source: R/distMoa.R

Description

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

Usage

1
2
3
4
5
6
7
8
9
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

1
2
3
4
5
6
7
# 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)

mengchen18/mogsa documentation built on June 7, 2020, 6:05 p.m.