R/nnls.R

Defines functions nnls

Documented in nnls

nnls <- function (cvec, nnls.y, nnls.x)
{
    sum ((drop (nnls.y - nnls.x %*% cvec))^2)
}

Try the lqa package in your browser

Any scripts or data that you put into this service are public.

lqa documentation built on May 30, 2017, 3:41 a.m.