dist2: This is the distance function extracted from SNFtool package....

Description Usage Arguments Value Examples

View source: R/internal.R

Description

This is the distance function extracted from SNFtool package. Computes the Euclidean distances between all pairs of data point given.

Usage

1
dist2(X, C)

Arguments

X

A data matrix where each row is a different data point

C

A data matrix where each row is a different data point. If this matrix is the same as X, pairwise distances for all data points are computed.

Value

Returns an N x M matrix where N is the number of rows in X and M is the number of rows in M. element (n,m) is the squared Euclidean distance between nth data point in X and mth data point in C

Examples

1
2

taoshengxu/CancerSubtypes documentation built on Dec. 23, 2021, 7:46 a.m.