pcls1: pcls1

Description Usage Arguments Value Examples

View source: R/pcls1.R

Description

Solve the positively constrained least squares problem with 1 explanatory variable

Usage

1
pcls1(X, Y)

Arguments

X

a list containing the explanatory variable

Y

a list containing the response vector

Value

a list containing the optimal parameter and the Lagrange multiplier

Examples

1
results <- pcls1(X = data.frame(runif(5)), Y = data.frame(1:5))

Jawad-Boulahfa/nnls2d documentation built on Sept. 3, 2020, 10:37 p.m.