Class ActivityAndCover
Inheritance
ActivityAndCover
Assembly: AudioAnalysisTools.dll
public static class ActivityAndCover
Fields
|
Improve this Doc
View Source
Declaration
public const double DefaultActivityThresholdDb = 6
Field Value
Methods
|
Improve this Doc
View Source
Declaration
public static SummaryActivity CalculateActivity(double[] dBarray, TimeSpan frameStepDuration)
Parameters
Returns
|
Improve this Doc
View Source
Returns the number of active frames and acoustic events and their average duration in milliseconds
Only counts an event if it is LONGER than one frame.
Count events as number of transitions from active to non-active frame.
Declaration
public static SummaryActivity CalculateActivity(double[] dBarray, TimeSpan frameStepDuration, double dbThreshold)
Parameters
Type |
Name |
Description |
Double[] |
dBarray |
array of DB values.
|
TimeSpan |
frameStepDuration |
frame duration in seconds.
|
Double |
dbThreshold |
threshold in decibels.
|
Returns
|
Improve this Doc
View Source
Returns the number of acoustic events per second in the each frequency bin.
Also returns the fractional cover in each freq bin, that is, the fraction of frames where amplitude > threshold.
WARNING NOTE: If you call this method, you must provide the low and mid-freq bounds as BIN IDs, NOT as Herz values.
Declaration
public static SpectralActivity CalculateSpectralEvents(double[, ] spectrogram, double dbThreshold, TimeSpan frameStepDuration, int lowFreqBinIndex, int midFreqBinIndex)
Parameters
Returns
|
Improve this Doc
View Source
Returns the number of acoustic events per second in the each frequency bin.
Also returns the fractional cover in each freq bin, that is, the fraction of frames where amplitude > threshold.
WARNING NOTE: This method assumes that a linear herz scale, i.e. that herz bin width is constant over the frequency scale.
If you have octave freq scale, then call the following method with bin bounds pre-calculated.
Bin width = Herz per bin i.e. column in spectrogram - spectrogram rotated wrt to normal view.
Declaration
public static SpectralActivity CalculateSpectralEvents(double[, ] spectrogram, double dbThreshold, TimeSpan frameStepDuration, int lowFreqBound, int midFreqBound, double binWidth)
Parameters
Returns