Static
centreCalculate the center of a compositional dataset
Array of ternary points
The center point
Static
closeClose compositions to ensure they sum to 1
Array of ternary points
Closed compositions
Static
geometricCalculate geometric mean of an array of numbers
Array of numeric values
Whether to remove zeros before calculation
The geometric mean
Static
isValidate that a point is a valid ternary point (i.e., has three non-null components)
Static
perturbePerturbe a compositional dataset by a compositional vector
Array of ternary points
Perturbation vector
Perturbated compositions
Static
powerPower scaling of compositions
Array of ternary points
Power scalar
Scaled compositions
Static
validateValidate ternary points
Array of ternary points to validate
Utility functions for compositional data analysis