#include "Emotions2.h" int main( int argc, char *argv[] ) { if( 5 != argc ) { std::cerr << "Usage: emotions " << std::endl; return 10; } mpt::Emotions2 emo( argv[1], argv[2], argv[3], argv[4] ); // emo.setSoftmax( true ); // emo.setSigmoid( true ); // static const int auCount = 11; // static const int addAuCount = 8; float vec11[mpt::Emotions2::auCount] = { 0.63583281, -0.93894478, 1.6071291, -0.52653714, 0.23850673, -0.035066941, -2.9659041, -0.075301016, 5.4362499, 4.0074338, 1.8386969 }; float vec8[mpt::Emotions2::addAuCount] = { 0.071404413, 0.49279772, -0.040082988, 1.1261478, -0.09316639, 0.44262888, 0.34627261, -0.77186324 }; std::vector aus( mpt::Emotions2::auCount, 0.0 ); std::copy( vec11, vec11+mpt::Emotions2::auCount, aus.begin() ); std::vector add( mpt::Emotions2::addAuCount, 0.0 ); std::copy( vec8, vec8+mpt::Emotions2::addAuCount, add.begin() ); std::vector more( mpt::Emotions2::moreCount, 0.0 ); std::vector res = emo.calc( aus, add, more ); std::cout << std::endl << "Results: " << std::endl; for( unsigned int idx = 0; idx < res.size(); ++idx ) std::cout << res[idx] << ", "; std::cout << std::endl; return 0; }