Learn R Programming

M2SMF (version 2.0)

dist2eu: Calculate the Euclidean distance

Description

Calculate the Euclidean distance of two any pair-wise samples x_i and x_j for continuous variables

Usage

dist2eu(X, C)

Arguments

X

A sample-feature matrix with rows as samples and columns as features

C

The same as X

Value

A matrix whose elements at (i,j) is the Euclidean distance of two any pair-wise samples x_i and x_j

Examples

Run this code
# NOT RUN {
data_list <- simu_data_gen()
X <- data_list[[1]]
C <- X
Diff <- dist2eu(X,C)
# }

Run the code above in your browser using DataLab