Skip to content

Commit

Permalink
Update NinoxStrenua.cs
Browse files Browse the repository at this point in the history
Issue #370 Use different formula to calculate maximum length of a syllable sequence.
  • Loading branch information
towsey committed Aug 28, 2020
1 parent aaa90ea commit fb753a8
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/AnalysisPrograms/Recognizers/Birds/NinoxStrenua.cs
Original file line number Diff line number Diff line change
Expand Up @@ -119,9 +119,8 @@ public override RecognizerResults Recognize(
var maximumEventDuration = chirpConfig.MaxDuration;
if (genericConfig.CombinePossibleSyllableSequence)
{
int maxComponentCount = genericConfig.SyllableMaxCount;
minimumEventDuration *= 2.0;
maximumEventDuration *= maxComponentCount;
maximumEventDuration = genericConfig.SyllableMaxCount * genericConfig.SyllableStartDifference;
}

combinedResults.NewEvents = EventExtentions.FilterOnDuration(combinedResults.NewEvents, minimumEventDuration.Value, maximumEventDuration.Value);
Expand Down

0 comments on commit fb753a8

Please sign in to comment.