Different norms for different functions
9 ビュー (過去 30 日間)
古いコメントを表示
I am wondering why functions such as 'rcond' rely on a different norm of computation than the default value of the function 'norm'. Moreover, I am also wondering why the default output of 'norm' is the spectral norm. What is the intuition/practicality behind this?
0 件のコメント
回答 (1 件)
Ameer Hamza
2018 年 5 月 21 日
MATLAB provides the option to use cond to calculate a different-norm condition number. According to the documentation difference between rcond() and cond() lies in their implementation. rcond() is more efficient of the two, but less reliable.
As for the choice of L2-norm as default output for norm() function, I think it has to do with the widespread use of L2 norm. For example, the Euclidean distance between two vectors, similarly the least square error problems also use L2-norm between predicted and actual dataset. Other types of norms are not as common and intuitive as L2 norm. Therefore it make sense to set it as the default value for MATLAB's norm() function.
0 件のコメント
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!