Skip to content

Commit

Permalink
Shift two properties from DctParameters to OscillParameters
Browse files Browse the repository at this point in the history
Issue #500:
Shift Min and MaxOscillationFrequency properties from DctParameters to OscillParameters. These two are properties of an oscillation and not of a DCT.
  • Loading branch information
towsey committed Jun 28, 2021
1 parent 0b46e3b commit 943ac26
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 14 deletions.
14 changes: 0 additions & 14 deletions src/AudioAnalysisTools/DctParameters.cs
Original file line number Diff line number Diff line change
Expand Up @@ -27,20 +27,6 @@ public abstract class DctParameters : CommonParameters
/// <value>A value representing a minimum amplitude threshold in the range `[0, 1]`.</value>
public double DctThreshold { get; set; } = 0.5;

/// <summary>
/// Gets or sets the minimum OSCILLATIONS PER SECOND
/// Ignore oscillation rates below the min amplitude above the max threshold.
/// </summary>
/// <value>The value in oscillations per second.</value>
public int MinOscillationFrequency { get; set; }

/// <summary>
/// Gets or sets the maximum OSCILLATIONS PER SECOND
/// Ignore oscillation rates below the min &amp; above the max threshold.
/// </summary>
/// <value>The value in oscillations per second.</value>
public int MaxOscillationFrequency { get; set; }

/// <summary>
/// Gets or sets the Event threshold - use this to determine FP / FN trade-off for events.
/// </summary>
Expand Down
13 changes: 13 additions & 0 deletions src/AudioAnalysisTools/Ocillations/OscillationParameters.cs
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,18 @@ namespace AnalysisPrograms.Recognizers.Base
[YamlTypeTag(typeof(OscillationParameters))]
public class OscillationParameters : DctParameters
{
/// <summary>
/// Gets or sets the minimum OSCILLATIONS PER SECOND
/// Ignore oscillation rates below the min threshold.
/// </summary>
/// <value>The value in oscillations per second.</value>
public double? MinOscillationFrequency { get; set; }

/// <summary>
/// Gets or sets the maximum OSCILLATIONS PER SECOND
/// Ignore oscillation rates above the max threshold.
/// </summary>
/// <value>The value in oscillations per second.</value>
public double? MaxOscillationFrequency { get; set; }
}
}

0 comments on commit 943ac26

Please sign in to comment.