Adds the "nnls" method to the partition() function, which returns a non-linear least-squares solution. This should be used when each shell's contribution is required to be positive, e.g. when partitioning densities.
Closes: #140
Added: The glass.core.algorithm module.
Added: The new partition(method="nnls") function computes a partition with non-negative contributions for each shell.
Changed: The default method for partition() is now "nnls".
Adds the
"nnls"
method to thepartition()
function, which returns a non-linear least-squares solution. This should be used when each shell's contribution is required to be positive, e.g. when partitioning densities.Closes: #140 Added: The glass.core.algorithm module. Added: The new partition(method="nnls") function computes a partition with non-negative contributions for each shell. Changed: The default method for partition() is now "nnls".