Commit 8b3758d6 authored by Adrien Dorsaz's avatar Adrien Dorsaz

Fix android compilation

parent 7d4342a6
......@@ -30,8 +30,8 @@ Emotions::Emotions()
}
void Emotions::arousalValence(double arousal, double valence){
arousal=(int)(arousal*pow10(EMOTION_AROUSAL_ACCURACY));
valence=(int)(valence*pow10(EMOTION_VALENCE_ACCURACY));
arousal=(int)(arousal*qPow(10,EMOTION_AROUSAL_ACCURACY));
valence=(int)(valence*qPow(10,EMOTION_VALENCE_ACCURACY));
if(_record){
insertValue(_arousalSet, arousal);
......@@ -152,7 +152,7 @@ void Emotions::storeClassifiers(){
QFile file(_dataPath);
if (!file.open(QIODevice::WriteOnly)) {
qDebug() << "Emotions : cannot open file emotionClasses.dat : "
qDebug() << "Emotions : cannot open file "<< file.fileName() <<" : "
<< qPrintable(file.errorString()) << file.fileName()<< endl;
return;
}
......@@ -201,7 +201,7 @@ void Emotions::storeClass(QString klassName, NaiveBayesClassifier *classifier){
void Emotions::getClassifiers(){
QFile file(_dataPath);
if (!file.open(QIODevice::ReadOnly)) {
qDebug() << "Emotions : cannot open file emotionClasses.dat : "
qDebug() << "Emotions : cannot open file "<< file.fileName() <<" : "
<< qPrintable(file.errorString()) << file.fileName() << endl;
return;
}
......
......@@ -3,11 +3,12 @@
#include <QString>
#include <QObject>
#include <QDebug>
#include <QMapIterator>
#include <QVariant>
#include <QDateTime>
#include <QProcess>
#include <QDebug>
#include <qmath.h>
#include "sbs2common.h"
#include "naivebayesclassifier.h"
......
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