Riemann_dist_sets: Calculate distances between all pairs of samples from two...

Description Usage Arguments Details Value

View source: R/RcppExports.R

Description

Calculate distances between all pairs of samples from two sample sets

Usage

1
Riemann_dist_sets(A, B, n_hosts, host_samples_A, host_samples_B)

Arguments

A

posterior sample matrix 1, ordered by sample number, the host concatenated across columns

B

posterior sample matrix 2, ordered by sample number, the host concatenated across columns

n_hosts

number of hosts in set A and B (must be equal)

host_samples_A

number of samples per host in set A

host_samples_B

number of samples per host in set B

Details

Dimensions of the samples matrix are D rows x DN columns where D = no. of features and N = no. of samples. For two hosts "DUD" and "OMO" with 3 samples each, these are arranged column-wise in the matrix as (DUD 1, OMO 1, DUD 2, OMO 2, DUD 3, OMO 3).

Value

distance


kimberlyroche/ROL documentation built on Dec. 10, 2020, 2:18 a.m.