Function nnls

  • Find $x$ that minimizes the distance ||Ax - b|| s.t x >= 0

    Parameters

    • X: Matrix | number[][]

      input data

    • y: number[] | Matrix

      response data

    • Optional options: NnlsOptions<undefined | false>

      options

    Returns DataOnly

  • Parameters

    • X: Matrix | number[][]
    • y: number[] | Matrix
    • Optional options: NnlsOptions<true>

    Returns DataAndInfo

  • Type Parameters

    • T extends undefined | boolean

    Parameters

    • X: Matrix | number[][]
    • y: number[] | Matrix
    • Optional options: NnlsOptions<T>

    Returns NNLSOutput