amat: Aitchison Scalar Product for Matrices

Description Usage Arguments Value Examples

View source: R/6-dotProduct.R

Description

This function computes the Aitchison scalar product of two matrices, The first matrix should describe N sample compositions (as rows) with D components (as columns), while the second matrix should describe D weight compositions (as rows) for M outputs (as columns).

Usage

1
amat(X, W)

Arguments

X

A matrix of sample compositions.

W

A matrix of weight compositions.

Value

A matrix of scalar products.

Examples

1
2
3
X <- randAcomp(4, 5)
W <- t(randAcomp(3, 5))
amat(X, W)

tpq/amalgam documentation built on March 14, 2020, 10:27 a.m.