Is there an LDA method that matches the format "D_t= W_Tc^T * E_t + w_0"

1 view (last 30 days)
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,

Answers (1)

Ilya
Ilya on 29 Nov 2012
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.

Categories

Find more on Statistics and Machine Learning Toolbox in Help Center and File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!