distance2 {NMFN}R Documentation

Euclidean Distance between two matrices

Description

Euclidean Distance between two matrices

Usage

distance2(x1, x2)

Arguments

x1 Matrix 1
x2 Matrix 2

Author(s)

Suhai (Timothy) Liu

Examples


## The function is currently defined as
function (x1, x2) 
{
    temp <- x1 - x2
    sum(temp * temp)
  }

[Package NMFN version 1.0 Index]