Scorio - v0.2.3
    Preparing search index...

    Function avg

    • Avg@N with a Bayesian uncertainty estimate (uniform prior, no R0).

      Parameters

      • R: Matrix

        M x N integer matrix with entries in {0,...,C}.

      • Optionalw: readonly number[] | null

        Optional length-(C+1) weight vector. If omitted, R must be binary and [0, 1] is used.

      Returns [number, number]

      [a, sigma] where a is the (weighted) average.