Skip to content

Commit

Permalink
Update src/AudioAnalysisTools/Events/Types/CompositeEvent.cs
Browse files Browse the repository at this point in the history
Co-authored-by: Anthony Truskinger <[email protected]>
  • Loading branch information
towsey and atruskie authored May 11, 2020
1 parent 79e8f35 commit 16bc669
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 16bc669

Please sign in to comment.