rStats.js v1.3.0
    Preparing search index...

    Function kappa

    • Condition number of a matrix, estimated or exact. Equivalent to R's kappa().

      By default (as in R) this is the LINPACK estimate of the one-norm condition number, computed on the triangular factor R of the QR decomposition. With exact: true and the default norm: "2", it is the ratio of the largest to the smallest singular value (computed with svd); Infinity if the matrix is singular.

      Parameters

      Returns number

      The (estimated) condition number.

      kappa([[1, 2], [3, 4]]);                  // 17.85 (LINPACK estimate)
      kappa([[1, 2], [3, 4]], { exact: true }); // 14.933034373659272