Skip to content

Commit

Permalink
SignalDetectorClass
Browse files Browse the repository at this point in the history
Fehler in compress_pattern (cast auf long für 2. puls fehlte)
#78 #71 #67
  • Loading branch information
sidey79 committed Feb 25, 2018
1 parent 0092582 commit 2537a19
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -286,7 +286,7 @@ void SignalDetectorClass::compress_pattern()


int sum = histo[idx] + histo[idx2];
pattern[idx] = ((long(pattern[idx]) * histo[idx]) + (pattern[idx2] * histo[idx2])) / sum;
pattern[idx] = ((long(pattern[idx]) * histo[idx]) + (long(pattern[idx2]) * histo[idx2])) / sum;
histo[idx] += histo[idx2];
pattern[idx2] = histo[idx2]= 0;

Expand Down

0 comments on commit 2537a19

Please sign in to comment.