Did anyone use "x = lsqnonneg(C,d,options)" function mathematically?
2 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
Riyadh Muttaleb
il 7 Mag 2016
Commentato: Walter Roberson
il 4 Mag 2017
I have trouble with use "x = lsqnonneg(C,d,options)" mathematically especially "options" ... options = optimset('param1',value1,'param2',value2,...)
Thanks in advance
Riyadh
0 Commenti
Risposta accettata
Walter Roberson
il 8 Mag 2016
The only options accepted for lsqnonneg are listed at http://www.mathworks.com/help/matlab/ref/optimset.html as Display and TolX. Display has no effect on the calculation. TolX is described http://www.mathworks.com/help/matlab/math/setting-options.html#bt00l89-1
"TolX is a lower bound on the size of a step, meaning the norm of (xi – xi+1). If the solver attempts to take a step that is smaller than TolX, the iterations end."
Mathematics might be infinitely precise in theory, but reaching infinite precision can take an infinite amount of time, and the user might not need that precision. Besides, double precision cannot distinguish more than one part in 2^53; see http://www.mathworks.com/help/matlab/ref/eps.html
5 Commenti
Walter Roberson
il 4 Mag 2017
You appear to be discussing this with John over in https://www.mathworks.com/matlabcentral/answers/338575-how-can-i-calculate-the-confidence-interval-for-lsqnonneg-regression
Più risposte (0)
Vedere anche
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!