Skip to content

Commit

Permalink
Fix unit tests for AED and Cisticola
Browse files Browse the repository at this point in the history
Issue #390
  • Loading branch information
towsey authored and atruskie committed Nov 1, 2020
1 parent 947cf40 commit e80aa2c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,8 @@ public void TestRecognizer()
Assert.AreEqual(7.432, ev.EventEndSeconds);
Assert.AreEqual(2542, ev.LowFrequencyHertz);
Assert.AreEqual(3100, ev.HighFrequencyHertz);
Assert.AreEqual(19.577394545704326, ev.Score, TestHelper.AllowedDelta);
Assert.AreEqual(0.00013717318483754581, ev.ScoreNormalized, TestHelper.AllowedDelta);
Assert.AreEqual(17.916490813192297, ev.Score, TestHelper.AllowedDelta);
Assert.AreEqual(0.077654864863397136, ev.ScoreNormalized, TestHelper.AllowedDelta);
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -968,6 +968,8 @@ public void TestAedAlgorithm()
});
var config = new GenericRecognizer.GenericRecognizerConfig()
{
DecibelThresholds = new double?[] { 0.0 },

Profiles = new Dictionary<string, object>()
{
{
Expand Down

0 comments on commit e80aa2c

Please sign in to comment.