W.Gen {LPKsample}R Documentation

Similarity matrix based on eLP basis and polynomial kernel

Description

Given data matrix XX and eLP order kk, this function generate the similarity matrix WW for graph analysis.

Usage

W.Gen(X, k, c.poly = 0.5)

Arguments

X

A nn-by-dd matrix of the observations

k

An integer, order of LP component

c.poly

Numeric, parameter for polynomial kernel

Value

A nn-by-nn similarity matrix generated from kk-th order eLP transformation of XX

Author(s)

Mukhopadhyay, S. and Wang, K.

References

Mukhopadhyay, S. and Wang, K. (2020), "A Nonparametric Approach to High-dimensional K-sample Comparison Problem", arXiv:1810.01724.

See Also

GLP

Examples

#example: 6 observations on 3 features:
 x<-rbind(matrix(runif(9),3,3),matrix(runif(9)+1,3,3))
#LP similarity matrix:
 simmat<-W.Gen(x,1)$W
 image(simmat)

[Package LPKsample version 2.1 Index]