Tricolore - v0.1.0
    Preparing search index...

    Class CompositionUtils

    Utility functions for compositional data analysis

    Index

    Constructors

    Methods

    • Calculate geometric mean of an array of numbers

      Parameters

      • x: number[]

        Array of numeric values

      • removeZeros: boolean = true

        Whether to remove zeros before calculation

      Returns number

      The geometric mean

    • Validate ternary points

      Parameters

      • P: (null | TernaryPoint)[]

        Array of ternary points to validate

      Returns void

      Error if any point has negative values or values don't sum to approximately 1