FDist2 {SMFilter}R Documentation

Compute the squared Frobenius distance between two matrices.

Description

This function Compute the squared Frobenius distance between two matrices.

Usage

FDist2(mX, mY)

Arguments

mX

a p×rp \times r matrix where prp \geq r.

mY

another p×rp \times r matrix where prp \geq r.

Details

The Frobenius distance between two matrices is defined to be

d(X,Y)=tr{AA}d(X, Y) = \sqrt{ \mathrm{tr} \{ A' A \} }

where A=XYA = X - Y.

The Frobenius distance is a possible measure of the distance between two points on the Stiefel manifold.

Value

the Frobenius distance.

Author(s)

Yukai Yang, yukai.yang@statistik.uu.se

Examples


FDist2(runif_sm(1,4,2)[1,,], runif_sm(1,4,2)[1,,])


[Package SMFilter version 1.0.3 Index]