Features (variable) ranking/selection
조회 수: 3 (최근 30일)
이전 댓글 표시
Hello,
I am working on a mood detection from audio files algorithm and I need to compare results in variables (scalar) then display an answer based on that comparison.
For example: if variable1 = 1 and (variable2 = 1 or variable2 = 2) then display 'x'.
The problem is each variable has a different weight when I am displaying the results (i.e. variable1 weighs 40% and variable2 weighs 50%).
Is there any way to do this using any MATLAB functions?
I've turned the Internet upside down looking for an answer but couldn't find anything that would help me.
Thank you in advance for your help!
Kind regards,
Mihnea
댓글 수: 2
Jan
2014년 4월 12일
편집: Jan
2014년 4월 12일
It is not clear how the weights are connected to your question. What does it mean for the IF-statement, that variable2 has a weight of 50% (by the way, 50% of what?)?
Do you have a fair application for this program? Or is it thought to support the NSA to detect phone calls of angry European persons?
채택된 답변
Image Analyst
2014년 4월 12일
As you can see by now, you're making yourself clear and no one knows what you mean. I just thought I'd add my guess to the mix. Create a weighted value, then threshold it.
value = weight1 * dynamics + ...
weight2 * tempo + ...
weight3 * pitch + ...
weight4 * keymode + ...
weight5 * timbre;
if value > someThreshold
% Do something.
else
% Do something else.
end
추가 답변 (2개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Audio Processing Algorithm Design에 대해 자세히 알아보기
제품
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!