Learn R Programming

rgTest (version 0.1)

getdis: Get distance matrix

Description

This function returns the distance matrix using L2 distance.

Usage

getdis(y)

Value

A distance matrix based on the L2 distance.

Arguments

y

dataset of the pooled data

Examples

Run this code
data(example0)
data = as.matrix(example0$data)     # pooled dataset
getdis(data)

Run the code above in your browser using DataLab