constrained_lm: constrained_lm

Description Usage Arguments Value Author(s) See Also

Description

Constrained least-squares function. The constraint included ensures that the sum of the estimated coefficients is equal to 1 and the coefficients are positive.

Usage

1
constrained_lm(y, X, tol = 1e-12)

Arguments

y

A column matrix with the y values

X

The design matrix of the problem

tol

A numeric value with the tolerance specified to avoid numerical instability during the solution of the least-squares problem.

Value

This function returns a numeric vector with the values of the estimated coeffcicients.

Author(s)

Oscar Garcia-Cabrejo, khaors@gmail.com

See Also

Other mixing functions: m3_mixing_model, mix_model, plot_m3_mixing_results, select_end_members, uncertainty_m3_mixing_model


khaors/GQAnalyzer documentation built on May 29, 2019, 8:35 a.m.