swh:1:snp:c5bf23010a433f55124ad01cf6314106162422e4
Tip revision: 54642f44cc2eda916da706af1cf7cdfb1f96f873 authored by Björn Böttcher on 02 November 2017, 12:46:55 UTC
version 1.0.5
version 1.0.5
Tip revision: 54642f4
cdms.Rd
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/multivariance-functions.R
\name{cdms}
\alias{cdms}
\title{computes the centered distance matrices}
\usage{
cdms(x, membership = 1:ncol(x), ...)
}
\arguments{
\item{x}{matrix, each row is a sample}
\item{membership}{vector which indicates which columns are treated as one sample}
\item{...}{these are passed to \code{\link{cdm}}}
}
\value{
It returns an 3 dimensional array of the distance matrices. The index of the first dimension names the component for which the matrix is computed, thus it ranges from 1 to max(membership).
}
\description{
computes the centered distance matrices
}
\details{
\code{membership} has to be a vector of length \code{ncol(x)}. Furthermore it has to have values from 1 to the number of classes.
}