Class ContentAlgorithms
Inherited Members
Namespace: AudioAnalysisTools.ContentDescriptionTools
Assembly: AudioAnalysisTools.dll
Syntax
public static class ContentAlgorithms
Methods
| Improve this Doc View SourceCreateBroadbandTemplate1(TemplateManifest, Dictionary<String, Double[,]>)
This algorithm is used for broad band events such as a bird chorus. It selects acoustic content over a band of several kHz and calculates a content score based on a template match to what is in the band.
Declaration
public static Dictionary<string, double[]> CreateBroadbandTemplate1(TemplateManifest manifest, Dictionary<string, double[, ]> templateIndices)
Parameters
| Type | Name | Description |
|---|---|---|
| Template |
manifest | A previously prepared template. |
| Dictionary<String, Double[,]> | templateIndices | The actual dictionary of template arrays. |
Returns
| Type | Description |
|---|---|
| Dictionary<String, Double[]> | A similarity score. |
CreateFullBandTemplate1(TemplateManifest, Dictionary<String, Double[,]>)
This algorithm is used for full band width events such as a rain and wind. It calculates a content score based on a template match to what is in the full spectrum.
Declaration
public static Dictionary<string, double[]> CreateFullBandTemplate1(TemplateManifest manifest, Dictionary<string, double[, ]> templateIndices)
Parameters
| Type | Name | Description |
|---|---|---|
| Template |
manifest | A description of the template which is to be created. |
| Dictionary<String, Double[,]> | templateIndices | The actual dictionary of template arrays. |
Returns
| Type | Description |
|---|---|
| Dictionary<String, Double[]> | A new template. |
CreateNarrowBandTemplate1(TemplateManifest, Dictionary<String, Double[,]>)
This algorithm is used for narrow band events such as an insect bird chorus or content due to narrow band calls of a single bird species. It searches the full spectrum for a match to the template and then calculates how much of the match weight is in the correct narrow freq band.
Declaration
public static Dictionary<string, double[]> CreateNarrowBandTemplate1(TemplateManifest manifest, Dictionary<string, double[, ]> templateIndices)
Parameters
| Type | Name | Description |
|---|---|---|
| Template |
manifest | A previously prepared template. |
| Dictionary<String, Double[,]> | templateIndices | The actual dictionary of template arrays. |
Returns
| Type | Description |
|---|---|
| Dictionary<String, Double[]> | A similarity score. |
GetBroadbandContent1(Dictionary<String, Double[]>, TemplateManifest, Dictionary<String, Double[]>)
This algorithm is used for broad band events such as a bird chorus. It selects acoustic content over a band of several kHz and calculates a content score based on a template match to what is in the band.
Declaration
public static double GetBroadbandContent1(Dictionary<string, double[]> oneMinuteOfIndices, TemplateManifest template, Dictionary<string, double[]> templateIndices)
Parameters
| Type | Name | Description |
|---|---|---|
| Dictionary<String, Double[]> | oneMinuteOfIndices | Derived from the source recording. |
| Template |
template | A previously prepared template. |
| Dictionary<String, Double[]> | templateIndices | The actual dictionary of template arrays. |
Returns
| Type | Description |
|---|---|
| Double | A similarity score. |
GetFullBandContent1(Dictionary<String, Double[]>, TemplateManifest, Dictionary<String, Double[]>)
This algorithm is used for full band width events such as a rain and wind. It calculates a content score based on a template match to what is in the full spectrum.
Declaration
public static double GetFullBandContent1(Dictionary<string, double[]> oneMinuteOfIndices, TemplateManifest template, Dictionary<string, double[]> templateIndices)
Parameters
| Type | Name | Description |
|---|---|---|
| Dictionary<String, Double[]> | oneMinuteOfIndices | Derived from the source recording. |
| Template |
template | A previously prepared template. |
| Dictionary<String, Double[]> | templateIndices | The actual dictionary of template arrays. |
Returns
| Type | Description |
|---|---|
| Double | A similarity score. |
GetNarrowBandContent1(Dictionary<String, Double[]>, TemplateManifest, Dictionary<String, Double[]>)
This algorithm is used for narrow band events such as an insect bird chorus or content due to narrow band calls of a single bird species. It searches the full spectrum for a match to the template and then calculates how much of the match weight is in the correct narrow freq band.
Declaration
public static double GetNarrowBandContent1(Dictionary<string, double[]> oneMinuteOfIndices, TemplateManifest template, Dictionary<string, double[]> templateIndices)
Parameters
| Type | Name | Description |
|---|---|---|
| Dictionary<String, Double[]> | oneMinuteOfIndices | Derived from the source recording. |
| Template |
template | A previously prepared template. |
| Dictionary<String, Double[]> | templateIndices | The actual dictionary of template arrays. |
Returns
| Type | Description |
|---|---|
| Double | A similarity score. |