Commit 34368f86 authored by Francisco Bernardo's avatar Francisco Bernardo
Browse files

implemented machineLearning<rapidGVG>::run and rapidGVF::process

parent e24e0d34
......@@ -71,9 +71,16 @@ std::vector<double> rapidGVF::process(const std::vector<double> &inputVector){
this->currentGesture.addObservation(vf);
this->outcomes = this->gvf->update(this->currentGesture.getLastObservation());
return std::vector<double>();
std::vector<double> output;
output.insert(output.end(), this->outcomes.likeliestGesture, 1);
output.insert(output.end(), this->outcomes.likelihoods.begin(), this->outcomes.likelihoods.end());
output.insert(output.end(), this->outcomes.alignments.begin(), this->outcomes.alignments.end());
// output.insert(output.end(), this->outcomes.dynamics.begin(), this->outcomes.dynamics.end());
// output.insert(output.end(), this->outcomes.scalings.begin(), this->outcomes.scalings.end());
// output.insert(output.end(), this->outcomes.scalings.begin(), this->outcomes.scalings.end());
//
return output;
}
......
......@@ -63,7 +63,6 @@ TEST_CASE( "Tests default GVFGesture ctor.", "[GVF]" ) {
// Fill the template
gesture.addObservation(*frame);
}
gvf->update(gesture.getLastObservation());
}
......
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