powered by
Given data matrix \(X\) and eLP order \(k\), this function generate the similarity matrix \(W\) for graph analysis.
W.Gen(X, k, c.poly = 0.5)
A \(n\)-by-\(d\) matrix of the observations
An integer, order of LP component
Numeric, parameter for polynomial kernel
A \(n\)-by-\(n\) similarity matrix generated from \(k\)-th order eLP transformation of \(X\)
Mukhopadhyay, S. and Wang, K. (2020), "A Nonparametric Approach to High-dimensional K-sample Comparison Problem", arXiv:1810.01724.
GLP
# NOT RUN { #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) # }
Run the code above in your browser using DataLab