skbio.stats.composition.
inner
(x, y)[source]¶State: Experimental as of 0.4.0. Calculates the Aitchson inner product.
This inner product is defined as follows
x (array_like) – a matrix of proportions where rows = compositions and columns = components
y (array_like) – a matrix of proportions where rows = compositions and columns = components
inner product result
numpy.ndarray
Examples
>>> import numpy as np
>>> from skbio.stats.composition import inner
>>> x = np.array([.1, .3, .4, .2])
>>> y = np.array([.2, .4, .2, .2])
>>> inner(x, y)
0.2107852473...