Class RainIndices
Assembly: AudioAnalysisTools.dll
public static class RainIndices
Fields
|
Improve this Doc
View Source
Declaration
public const string header_cicada = "Cicadas"
Field Value
|
Improve this Doc
View Source
Declaration
public const string header_negative = "none"
Field Value
|
Improve this Doc
View Source
Declaration
public const string header_rain = "Rain"
Field Value
Methods
|
Improve this Doc
View Source
Declaration
public static double CalculateSpikeIndex(double[] envelope, double spikeThreshold)
Parameters
Type |
Name |
Description |
Double[] |
envelope |
|
Double |
spikeThreshold |
|
Returns
|
Improve this Doc
View Source
The values in this class were derived from See5 runs of data taken from ????.
Declaration
public static string ConvertAcousticIndices2Classifcations(RainIndices.RainStruct indices)
Parameters
Returns
|
Improve this Doc
View Source
Declaration
public static Dictionary<string, double> ConvertClassifcations2Dictionary(string[] classifications)
Parameters
Type |
Name |
Description |
String[] |
classifications |
|
Returns
|
Improve this Doc
View Source
returns some indices relevant to rain and cicadas from a short (10seconds) chunk of audio.
Declaration
public static RainIndices.RainStruct Get10SecondIndices(double[] signal, double[, ] spectrogram, int lowFreqBound, int midFreqBound, TimeSpan frameDuration, double binWidth)
Parameters
Type |
Name |
Description |
Double[] |
signal |
signal envelope of a 10s chunk of audio.
|
Double[,] |
spectrogram |
spectrogram of a 10s chunk of audio.
|
Int32 |
lowFreqBound |
|
Int32 |
midFreqBound |
|
TimeSpan |
frameDuration |
|
Double |
binWidth |
|
Returns
|
Improve this Doc
View Source
Declaration
public static Dictionary<string, double> GetIndices(double[] signalEnvelope, TimeSpan audioDuration, TimeSpan frameStepDuration, double[, ] spectrogram, int lowFreqBound, int midFreqBound, double binWidth)
Parameters
Type |
Name |
Description |
Double[] |
signalEnvelope |
envelope of the original signal.
|
TimeSpan |
audioDuration |
|
TimeSpan |
frameStepDuration |
|
Double[,] |
spectrogram |
the original amplitude spectrum BUT noise reduced.
|
Int32 |
lowFreqBound |
|
Int32 |
midFreqBound |
|
Double |
binWidth |
derived from original nyquist and window/2.
|
Returns