Search Results for

    Show / Hide Table of Contents

    Class BuildModel

    THis class builds/makes a set of content description templates. Templates are initially defined manually in a YAML file. Each template in a YAML file is called a "manifest". The array of manifests in a yml file is used to calculate an array of "functional templates" in a json file. The json file is generated automatically from the information provided in the manifests.yml file. A template manifest contains the "provenance" of the template (i.e. details of the recordings, source locations etc used to make the functional template. It also contains the information required to calculate the template definition. The core of a functional template is its definition, which is stored as a dictionary of spectral indices. The functional template also contains information required to scan new recordings with the template definition.

    IMPORTANT NOTE: At current time (Nov, 2019) Functional Templates are made by reading csv files containing pre-calculated spectral indices. In addition, the Functional Templates can subsequently be tested (this is optional) by reading csv files of spectral indices. The first two FileInfo arguments in the arguments list are compulsory and templates cannot be made without them. Arguments 3 and 4 are optional. They must be provided for testing the templates. Testing also requires files of pre-calculated spectral indices. TODO: Refactor the code so that functional templates can be made and tested reading directly from .wav recordings files.

    Inheritance
    Object
    BuildModel
    Inherited Members
    Object.Equals(Object)
    Object.Equals(Object, Object)
    Object.GetHashCode()
    Object.GetType()
    Object.MemberwiseClone()
    Object.ReferenceEquals(Object, Object)
    Object.ToString()
    Namespace: AnalysisPrograms.ContentDescription
    Assembly: AnalysisPrograms.dll
    Syntax
    public class BuildModel

    Fields

    | Improve this Doc View Source

    CommandName

    Declaration
    public const string CommandName = "BuildContentDescriptionModel"
    Field Value
    Type Description
    String

    Methods

    | Improve this Doc View Source

    Execute(BuildModel.Arguments)

    Declaration
    public static void Execute(BuildModel.Arguments arguments)
    Parameters
    Type Name Description
    BuildModel.Arguments arguments
    | Improve this Doc View Source

    TestTemplates(FileInfo, FileInfo, FileInfo)

    Declaration
    public static void TestTemplates(FileInfo listOfIndexFiles, FileInfo templatesFile, FileInfo imageOfLdfcSpectrogram)
    Parameters
    Type Name Description
    FileInfo listOfIndexFiles
    FileInfo templatesFile
    FileInfo imageOfLdfcSpectrogram

    Extension Methods

    ObjectExtensions.NotNull(Object)
    ObjectExtensions.AsArray<T>(T)
    ObjectExtensions.AsList<T>(T)
    ObjectExtensions.Wrap<T>(T)
    SystemExtensions.BinarySerialize(Object)
    ConfigFileExtensions.NotNull(Object, FileInfo, String, String)
    ConfigFileExtensions.ValidateNotNull(Object, String, String)
    ConfigFileExtensions.ValidateLessThan<T>(Object, Nullable<T>, String, Nullable<T>, String, String)
    ExtensionsXml.SerializeObject<T>(T)
    • Improve this Doc
    • View Source
    In This Article
    Generated by DocFX AP docs version: 21.7.0.4-master-e26127a50d7bd7472d47288f10e61014fb981f7f-DIRTY-CI:144 Back to top