getRealVStat: V Statistic for Real Matrices

View source: R/auxiliary.R

getRealVStatR Documentation

V Statistic for Real Matrices

Description

Computes V statistic for a real matrix \mathbf{X}, where V(\mathbf{X}) = scaled variance of l_p^p distances between the row samples of \mathbf{X}.

Usage

getRealVStat(X, p)

Arguments

X

The N \times P real matrix

p

The power p of l_p^p, i.e., ||x||_p^p = (x_1^p+...x_n^p)

Details

Dependencies: getLpDistance

Value

V(\mathbf{X}), the variance of the pairwise l_p^p distance between samples

Examples

X <- matrix(nrow = 5, ncol = 10, rnorm(50))
getRealVStat(X, p = 2)


flintyR documentation built on March 31, 2023, 8:19 p.m.