#include "Emotions1.h" int main( int argc, char *argv[] ) { mpt::Emotions1 emo; if( 2 != argc ) { std::cerr << "Usage: emotions " << std::endl; return 10; } emo.readFromFile( argv[1] ); float vec[mpt::Emotions1::auCount] = { 1.0, 2.0 , 3.0, 4.0, 5.0, 6.0, 7.0, 8.0, 9.0, 10.0, 11.0, 12.0, 13.0, 14.0, 15.0, 16.0, 17.0, 18.0, 19.0}; std::vector aus( mpt::Emotions1::auCount, 0.0 ); std::copy( vec, vec+mpt::Emotions1::auCount, aus.begin() ); std::vector res = emo.calc( aus ); 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; }