Skip to content

mlapshin/nnls

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Non-negative Least Square Algorithm

It's a C. Lawson and R. Hanson Fortran 77 code published in "Solving Least Squares Problems" translated to C code and binded to Ruby.

Usage

$ gem install nnls

a = [0.5, 0.3, 0.2,
     0.2, 0.7, 0.8]

b = [0.1, 0.1, 0.7]

result = NNLS.nnls(a, b, 2, 3)
=> [[0.05263157894736844, 0.0, 0.10526315789473684], 0.0]

License

This gem is distributed under MIT license.

About

Non-negative Least Square Algorithm

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published