Learn R Programming

MediaK (version 1.0)

RcppExports: 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

Run this code

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)


Run the code above in your browser using DataLab