Is there an LDA method that matches the format "D_t= W_Tc^T * E_t + w_0"
2 次查看(过去 30 天)
显示 更早的评论
Where W_Tc^T are the weights, E_t the signal/data and w_0 the offset. With D_t < 0 means E_t is class 1, and D_t > 0 means E_t is class 2.
Trying to replicate some work on Linear Discriminant Analysis but the current matlab classifier gives a discriminant for each class, with the higest discriminant being the selected class. I need it formatted as a threshold. Thanks,
0 个评论
回答(1 个)
Ilya
2012-11-29
Sounds like you want a linear regression model:
If you have an older version of MATLAB without the LinearModel class, you can use the regress function:
If you use an LDA implementation from the Statistics Toolbox, it predicts class labels and class posterior probabilities. You can threshold on the predicted posterior probability. Of course, that threshold should not be zero. By default it is 0.5.
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Statistics and Machine Learning Toolbox 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!