Learn R Programming

mixtree (version 0.0.1)

euclidean: Calculate the Euclidean distance between two distance matrices.

Description

This function computes the Euclidean distance between the lower triangular parts of two given matrices.

Usage

euclidean(mat1, mat2)

Value

A numeric value representing the Euclidean distance between the lower triangular parts of mat1 and mat2.

Arguments

mat1

A numeric matrix.

mat2

A numeric matrix.

Examples

Run this code
mat1 <- matrix(c(1, 2, 3, 4), 2, 2)
mat2 <- matrix(c(4, 3, 2, 1), 2, 2)
euclidean(mat1, mat2)

Run the code above in your browser using DataLab