RcppExports {MediaK} | R Documentation |
Set of functions in example RcppEigen package
Description
These two functions are created to calculate different values about MeDiA_k
Usage
dis_value(iTest,jTest,select)
permute(iTest,jTest,times,selectvec)
Arguments
iTest |
a numeric matrix |
jTest |
a numeric matrix which has the same rows as iTest |
select |
an integer which means get k values you want to get |
selectvec |
an integer vector which contains a series of K values you want to get |
times |
an integer indicates permutation times |
Value
dis_val(iTest,jTest,select)
returns a distance
permute(iTest,jTest,times,selectvec)
return a list contains mean and sd values based on the selectvec(K value you want to select)
Examples
iTest <- matrix(rnorm(1000),100)
jTest<- matrix(rnorm(200),100)
select<- 5
times<- 100
selectvec <- c(1:10)
dis_value(iTest,jTest,select)
permute(iTest,jTest,times,selectvec)
[Package MediaK version 1.0 Index]