From 0070fb0311365f33717b04335ffdb89606ccd1db Mon Sep 17 00:00:00 2001 From: towsey Date: Fri, 28 Aug 2020 14:20:08 +1000 Subject: [PATCH] Update NinoxStrenua.cs Issue #370 Use different formula to calculate maximum length of a syllable sequence. --- src/AnalysisPrograms/Recognizers/Birds/NinoxStrenua.cs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/AnalysisPrograms/Recognizers/Birds/NinoxStrenua.cs b/src/AnalysisPrograms/Recognizers/Birds/NinoxStrenua.cs index 68b1ce83e..0bb293a7a 100644 --- a/src/AnalysisPrograms/Recognizers/Birds/NinoxStrenua.cs +++ b/src/AnalysisPrograms/Recognizers/Birds/NinoxStrenua.cs @@ -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);