contrast_vector: Internal function for computing an ilr balancing element...

Description Usage Arguments Value Examples

View source: R/contrast_vector.R

Description

Internal function for computing an ilr balancing element given a list of split taxa in and the total number of taxa

Usage

1

Arguments

ix

two-member list containing the parts split by a partition

n

total number of parts

Value

ILR basis element corresponding to the split of ix[[1]] with ix[[2]] out of n-part composition.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
n <- 10
ix <- NULL
ix[[1]] <- c(3,4)
ix[[2]] <- c(5,6,7,8)
v1 <- ilrvec(ix,n)
sum(v1)

ix[[1]] <- c(5,6)
ix[[2]] <- c(7,8)
v2 <- ilrvec(ix,n)
sum(v2)
v1 %*% v2

reptalex/dendromap documentation built on April 19, 2021, 5:13 a.m.