Skip to content

Commit

Permalink
Update ClassFlowCNNGeneral.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
SybexX authored Dec 23, 2024
1 parent c163674 commit 977f6c3
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ int ClassFlowCNNGeneral::PointerEvalHybridNew(float number, float number_of_pred
// we use the recognition as given. The result is the int value of the recognition
// add precisition of 2 digits and round before trunc
// a number greater than 9.994999 is returned as 10, this leads to an error during the decimal shift because the NUMBERS[j]->ReturnRawValue is one digit longer.
// To avoid this, an additional test must be carried out, see "if (CNNType == Digit)" check in getReadout()
// To avoid this, an additional test must be carried out, see "if ((CNNType == DoubleHyprid10) || (CNNType == Digit100))" check in getReadout()
// Another alternative would be "result = (int) ((int) trunc(round((number+10 % 10)*1000))) / 1000;", which could, however, lead to other errors?
result = (int) ((int) trunc(round((number+10 % 10)*100)) ) / 100;

Expand Down

0 comments on commit 977f6c3

Please sign in to comment.