MATLAB 距離函數及用法

判別分析時,通常涉及到計算兩個樣本之間的距離,多元統計學理論中有多種距離計算公式。MATLAB中已有對應函數,可方便直接調用計算。距離函數有:pdist, pdist2, mahal, squareform, mdscale, cmdscale  主要介紹pdist2 ,其它可參考matlab help   D = pdist2(X,Y) D = pdist2(X,Y,distance) D =
相關文章
相關標籤/搜索