資源簡介
計算LDA中的散度矩陣,matlab實現(xiàn)
代碼片段和文件信息
function?[SwSb]=calculate2(trainsampletrainlabel)
%use?caideng‘s?method?to?calculate?SwSbSt
%each?row?of?trainsample?is?a?data?point
%each?column?is?a?feature
[nd]=size(trainsample);
classlabel=unique(trainlabel);
nclass=length(classlabel);
totalmean=?mean(trainsample);
tm
- 上一篇:時間序列實驗報告
- 下一篇:數(shù)值分析非線性方程二分法求根
評論
共有 條評論