Commit 26dc47fd authored by Adrien Dorsaz's avatar Adrien Dorsaz

Modify arousal and valence read (for accuracy)

parent b9bd3e27
......@@ -27,8 +27,9 @@ Emotions::Emotions()
}
void Emotions::arousalValence(double arousal, double valence){
arousal=int(arousal)%10;
valence=int(valence)%10;
arousal=(int)(arousal*pow10(EMOTION_AROUSAL_ACCURACY));
valence=(int)(valence*pow10(EMOTION_VALENCE_ACCURACY));
if(_record){
insertValueAndTotal(_arousalSet, _totalArousalOccurrences, arousal);
......
......@@ -9,6 +9,10 @@
#include "sbs2common.h"
#include "naivebaiseclassifier.h"
// Number of decimals for arousal/valence (too high give bad results, too low too)
#define EMOTION_AROUSAL_ACCURACY 4
#define EMOTION_VALENCE_ACCURACY 5
class Emotions : public QObject{
Q_OBJECT
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment