kotlin-numpy / org.jetbrains.numkt.linalg / Linalg / lstsq

lstsq

fun <T : Number, E : Number> lstsq(a: KtNDArray<T>, b: KtNDArray<E>, rcond: Double? = null): List<*> (source)

Return the least-squares solution to a linear matrix equation.

Parameters

a - "coefficient" matrix.

b - ordinate or "dependent variable" values.

rcond - cut-off ratio for small singular values of a.

Return
Least-squares solution.