Scorio - v0.2.3
    Preparing search index...

    Function bayes

    • Bayes@N posterior mean (mu) and standard deviation (sigma).

      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.

      • OptionalR0: Matrix | null

        Optional M x D matrix of prior outcomes per row.

      Returns [number, number]

      [mu, sigma].