Skip to content
Snippets Groups Projects
Commit 14dd8fad authored by Martin Rusek's avatar Martin Rusek
Browse files

fix: csiChord function updated to work with non standard roots.

parent 667689bb
Branches
No related tags found
No related merge requests found
......@@ -286,7 +286,20 @@ double calcul::distance_dtw_csiChord(vtr<double> const &u, vtr<double> const &v
}
}
//if (chord == vtr<double>{0,0,0,0,0,0,0,0,0,0,0,0})
if (chord == vtr<double>{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0})
return 0;
else {
int c = 0;
for (int i = 0; i < (int)chord.size(); i++)
if (chord[i] > 0) c++;
if (c != 3)
{
cout << print::vector(chord);
return -1;
}
}
//chord = vtr<double>{ 1, 0, 0, 0, 1, 0, 0, 1, 0, 0, 0, 0 }; */
return 0;
};
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment