Skip to content

Commit

Permalink
Update AnthusNovaeseelandiae.cs
Browse files Browse the repository at this point in the history
Issue #321 Remove commented code.
  • Loading branch information
towsey committed Jun 10, 2020
1 parent c0a5326 commit b533b4a
Showing 1 changed file with 3 additions and 16 deletions.
19 changes: 3 additions & 16 deletions src/AnalysisPrograms/Recognizers/Birds/AnthusNovaeseelandiae.cs
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ public override AnalyzerConfig ParseConfig(FileInfo file)
return config;
}

throw new ConfigFileException("AnthusNovaeseelandiae expects one and only one ForwardTrack algorithm.", file);
throw new ConfigFileException("AnthusNovaeseelandiae expects one and only one UpwardTrack algorithm.", file);
}

/// <summary>
Expand Down Expand Up @@ -103,26 +103,13 @@ public override RecognizerResults Recognize(
return combinedResults;
}

// 1: Pull out the whip events and calculate their frequency profiles.
//var (whipEvents, others) = combinedResults.NewEvents.FilterForEventType<WhipEvent, EventCommon>();
// calculate profile here.

// Get the Pipit syllable config.
//const string profileName = "PipitSyllable";
//var whipConfig = (UpwardTrackParameters)genericConfig.Profiles[profileName];

// 2: Filter on COMPONENT COUNT in Composite events.
//int maxComponentCount = 2;
//combinedResults.NewEvents = EventExtentions.FilterEventsOnCompositeContent(combinedResults.NewEvents, maxComponentCount);
//PipitLog.Debug($"Event count after filtering on component count = {combinedResults.NewEvents.Count}");

// 3: Filter the events for duration in seconds
// 1: Filter the events for duration in seconds
var minimumEventDuration = 0.1;
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
// 2: Filter the events for bandwidth in Hertz
double average = 3500;
double sd = 600;
double sigmaThreshold = 3.0;
Expand Down

0 comments on commit b533b4a

Please sign in to comment.