Skip to content

Commit

Permalink
Update AnthusNovaeseelandiae.cs
Browse files Browse the repository at this point in the history
Issue #321 Do last work on Australiasian Pipit.
Getting large number of FPs i.e. 280 in 90 noise filoes. But this will have to be sorted doing post-processing on the event content.
  • Loading branch information
towsey authored and atruskie committed Jun 12, 2020
1 parent e76f221 commit 8e9f84c
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/AnalysisPrograms/Recognizers/Birds/AnthusNovaeseelandiae.cs
Original file line number Diff line number Diff line change
Expand Up @@ -118,15 +118,15 @@ public override RecognizerResults Recognize(

// 3: Filter the events for duration in seconds
var minimumEventDuration = 0.1;
var maximumEventDuration = 0.8;
//combinedResults.NewEvents = EventExtentions.FilterOnDuration(combinedResults.NewEvents, minimumEventDuration, maximumEventDuration);
var maximumEventDuration = 0.4;
combinedResults.NewEvents = EventExtentions.FilterOnDuration(combinedResults.NewEvents, minimumEventDuration, maximumEventDuration);
PipitLog.Debug($"Event count after filtering on duration = {combinedResults.NewEvents.Count}");

// 4: Filter the events for bandwidth in Hertz
double average = 4000;
double sd = 400;
double average = 3500;
double sd = 600;
double sigmaThreshold = 3.0;
//combinedResults.NewEvents = EventExtentions.FilterOnBandwidth(combinedResults.NewEvents, average, sd, sigmaThreshold);
combinedResults.NewEvents = EventExtentions.FilterOnBandwidth(combinedResults.NewEvents, average, sd, sigmaThreshold);
PipitLog.Debug($"Event count after filtering on bandwidth = {combinedResults.NewEvents.Count}");

//UNCOMMENT following line if you want special debug spectrogram, i.e. with special plots.
Expand Down

0 comments on commit 8e9f84c

Please sign in to comment.