Skip to content

Commit

Permalink
Merge branch 'BoobookRecognizerEtc' of https://github.com/QutEcoacous…
Browse files Browse the repository at this point in the history
…tics/audio-analysis into BoobookRecognizerEtc
  • Loading branch information
towsey committed May 11, 2020
2 parents 6f4eda6 + 16bc669 commit 08de2da
Showing 1 changed file with 2 additions and 14 deletions.
16 changes: 2 additions & 14 deletions src/AudioAnalysisTools/Events/Types/CompositeEvent.cs
Original file line number Diff line number Diff line change
Expand Up @@ -57,19 +57,7 @@ public IEnumerable<ITrack> Tracks
}
}

public new double ScoreNormalised()
{
double sum = 0.0;
foreach (var @event in this.ComponentEvents)
{
sum += @event.Score;
}

var score = sum / this.ComponentEvents.Count;

return score / this.ScoreRange.Maximum;
}

public override double ScoreNormalised => this.ComponentEvents.Average()
public override void Draw(IImageProcessingContext graphics, EventRenderingOptions options)
{
foreach (var @event in this.ComponentEvents)
Expand Down Expand Up @@ -353,4 +341,4 @@ public static double EventFractionalOverlap(AcousticEvent event1, AcousticEvent

//#################################################################################################################
}
}
}

0 comments on commit 08de2da

Please sign in to comment.