• Introduction
  • Theory
  • Guides
  • Tutorials
  • FAQ
  • Articles
  • Documentation
  • PDF
Search Results for

    Show / Hide Table of Contents
    • Changelog
    • Contributing
    • Code paths
    • Debugging
    • Code of conduct
    • Commands
      • Help
      • Analyze Long Recording
      • False Colour Spectrograms
      • Concatenate Index Files
    • Config files
      • GenericRecognizerConfig
      • CommonParameters
      • OscillationParameters
      • HarmonicParameters
      • PostProcessingConfig
      • AnalyzerConfig
    • API
      • Acoustics.Shared
        • AnalysisIo
        • AnalysisIoInputDirectory
        • AppConfigHelper
        • Base58
        • Binary
        • ByteCountFormatter
        • DateTimeFormatter
        • FileDateHelpers
        • FilenameHelpers
        • ImageChrome
        • Interval<T>
        • IntervalExtensions
        • InvalidDataSetException
        • InvalidFileDateException
        • IOrderer<TOrder>
        • Json
        • Json.IntervalConverter
        • Json.LegacyTimeSpanDataConverter
        • MediaTypeExtGroup
        • MediaTypeGroup
        • MediaTypes
        • Meta
        • MultiException
        • NonClosingStreamWrapper
        • OrderCoordinator<T>
        • Orderer<TOrder, TOrderProperty>
        • PathDiagnostics
        • PathDiagnostics.PathDiffReport
        • PathUtils
        • Plugins
        • ProcessRunner
        • ProcessRunner.ProcessMaximumRetriesException
        • SortDirection
        • SpectrogramType
        • SunTimes
        • SunTimes.Coords
        • SunTimes.LatitudeCoords
        • SunTimes.LatitudeCoords.Direction
        • SunTimes.LongitudeCoords
        • SunTimes.LongitudeCoords.Direction
        • TempFileHelper
        • TimeSpanFormatter
        • Topology
        • TwoDimensionalArray
        • Validation
        • ValidationExtensions
        • Yaml
        • YamlTypeTagAttribute
      • Acoustics.Shared.ColorScales
        • ColorBrewer
        • ColorBrewer.DivergingPalettes
        • ColorBrewer.QualitativePalettes
        • ColorBrewer.SequentialMultipleHuesPalettes
        • ColorBrewer.SequentialSingleHuePalettes
        • Palette
        • Type
      • Acoustics.Shared.ConfigFile
        • Config
        • ConfigFile
        • ConfigFileException
        • ConfigFileExtensions
        • ConfigSerializeContractResolver
        • IConfig
        • INamedProfiles<T>
        • IProfiles<T>
      • Acoustics.Shared.Contracts
        • Contract
      • Acoustics.Shared.Csv
        • Csv
        • CsvIntervalConverter
        • CsvSetPointConverter
        • TopologyEnumConverter
      • Acoustics.Shared.Extensions
        • CartesianExtension
        • RandomExtensions
      • Acoustics.Shared.ImageSharp
        • DeltaImageProcessor<TPixelBg, TPixelFg>
        • DeltaImageProcessor<TPixelFg>
        • DeltaPixelBlender<TPixel>
        • Drawing
        • Drawing.NoAA
        • IInterval2<TX, TY>
        • RotateFlipType
      • Acoustics.Shared.Logging
        • Log4NetTextWriter
        • Log4NetTextWriter.Mode
        • Logging
      • Acoustics.Tools
        • AudioFilePreparer
        • AudioReadingRequest
        • AudioUtilityInfo
        • AudioUtilityModifiedInfo
        • AudioUtilityRequest
        • BandPassType
        • SpectrogramRequest
      • Acoustics.Tools.Audio
        • AbstractAudioUtility
        • AbstractSpectrogramUtility
        • AbstractUtility
        • AudioFormatNotSupportedException
        • AudioUtilityException
        • BitDepthOperationNotImplemented
        • ChannelNotAvailableException
        • ChannelSelectionOperationNotImplemented
        • CustomSpectrogramUtility
        • FfmpegAudioUtility
        • FfmpegRawPcmAudioUtility
        • IAudioUtility
        • ISpectrogramUtility
        • MasterAudioUtility
        • Mp3SpltAudioUtility
        • Mp3SpltAudioUtility.SplitFileInfo
        • ShntoolAudioUtility
        • SoxAudioUtility
        • SoxAudioUtility.SoxResampleQuality
        • SoxSpectrogramUtility
        • WavPackAudioUtility
      • Acoustics.Tools.Wav
        • IWavReader
        • WavAudioInfo
        • WavChunk
        • WavReader
        • WavReader.WaveFormat
        • WavStreamReader
        • WavUtils
      • AcousticWorkbench
        • AcousticEventService
        • AcousticWorkbenchResponse<T>
        • Api
        • AudioRecordingService
        • AuthenticatedApi
        • AuthenticationService
        • AuthenticationService.EmailLoginRequest
        • AuthenticationService.LoginRequest
        • AuthenticationService.LoginResponse
        • Error
        • IApi
        • IAuthenticatedApi
        • MediaService
        • Meta
        • Service
        • Service.HttpResponseException
        • UrlGenerator
      • AcousticWorkbench.Models
        • AudioEvent
        • AudioRecording
        • Available
        • CommonParameters
        • FormatInfo
        • ImageFormatInfo
        • Media
        • Recording
        • Tagging
      • AForge.Imaging.Filters
        • BaseUsingCopyPartialFilter
        • CannyEdgeDetector
      • AnalysisBase
        • AbstractStrongAnalyser
        • AnalysisCoordinator
        • AnalysisResult
        • AnalysisResult2
        • AnalysisSettings
        • AnalyzerConfig
        • AudioRecordingTooShortException
        • Author
        • Bibliography
        • Citation
        • FileSegment
        • FileSegment.FileDateBehavior
        • IAnalyser2
        • ICiteable
        • IHasStatus
        • ISourcePreparer
        • SaveBehavior
        • SaveBehaviorExtensions
        • SegmentSettings<TSegment>
        • SegmentSettingsBase
        • SegmentSplitException
        • Status
        • TimeAlignment
      • AnalysisBase.Extensions
        • ModifiedInfoExtensions
      • AnalysisBase.ResultBases
        • EventBase
        • EventIndex
        • ITemporalEvent
        • ResultBase
        • SpectralIndexBase
        • SummaryIndexBase
      • AnalysisBase.Segment
        • InvalidSegmentException
        • ISegment<TSource>
        • SourceMetadata
      • AnalysisPrograms
        • AcousticIndices
        • AcousticIndices.AcousticIndicesConfig
        • Aed
        • Aed.AedConfiguration
        • Aed.Arguments
        • AnalysesAvailable
        • Audio2InputForConvCnn
        • Audio2InputForConvCnn.Arguments
        • Audio2InputForConvCnn.AudioToSonogramResult
        • Audio2InputForConvCnn.CsvDataRecord
        • Audio2InputForConvCnn.SpeciesCounts
        • AudioCutter
        • AudioCutter.Arguments
        • AudioFileCheck
        • AudioFileCheck.Arguments
        • BuildMetadata
        • ChannelIntegrityAnalyzer
        • CheckEnvironment
        • CheckEnvironment.Arguments
        • ConcatenateIndexFiles
        • ConcatenateIndexFiles.Arguments
        • Create4Sonograms
        • Create4Sonograms.Arguments
        • Crow
        • DifferenceSpectrogram
        • DifferenceSpectrogram.Arguments
        • DrawEasyImage
        • DrawEasyImage.Arguments
        • DrawLongDurationSpectrograms
        • DrawLongDurationSpectrograms.Arguments
        • DrawSummaryIndexTracks
        • DrawSummaryIndexTracks.Arguments
        • DummyAnalysis
        • DummyAnalysis.Arguments
        • EPR
        • EPR.Arguments
        • FileRenamer
        • FileRenamer.Arguments
        • GroundParrotRecogniser
        • GroundParrotRecogniser.Arguments
        • Human1
        • KoalaMale
        • KoalaMale.KoalaMaleResults
        • LSKiwi3
        • LSKiwi3.Arguments
        • LSKiwiHelper
        • LSKiwiROC
        • LSKiwiROC.Arguments
        • MahnooshSandpit
        • MahnooshSandpit.Arguments
        • MainEntry
        • OscillationRecogniser
        • OscillationRecogniser.Arguments
        • OscillationsGeneric
        • OscillationsGeneric.Arguments
        • PlanesTrainsAndAutomobiles
        • PreprocessorForConvDnn
        • PreprocessorForSurfAnalysis
        • RheobatrachusSilus
        • Sandpit
        • Sandpit.Arguments
        • Segment
        • Segment.Arguments
        • SnrAnalysis
        • SnrAnalysis.Arguments
        • SpeciesAccumulationCurve
        • SpeciesAccumulationCurve.Arguments
        • SpeciesAccumulationStats
        • SPT
        • SPT.Arguments
        • SurfAnalysis
        • SurfAnalysis.Arguments
        • SurfAnalysis.AudioToSonogramResult
        • SurfAnalysis.CsvDataRecord
        • SurfAnalysis.SpeciesCounts
      • AnalysisPrograms.AcousticWorkbench.Orchestration
        • EventMetadataResolver
        • RemoteSegment
        • RemoteSegmentWithData
      • AnalysisPrograms.AnalyseLongRecordings
        • AnalyseLongRecording
        • AnalyseLongRecording.Arguments
      • AnalysisPrograms.ContentDescription
        • BuildModel
        • BuildModel.Arguments
        • UseModel
        • UseModel.CdConfig
      • AnalysisPrograms.Draw.RibbonPlots
        • RibbonPlot
        • RibbonPlot.Arguments
      • AnalysisPrograms.Draw.Zooming
        • DrawZoomingSpectrograms
        • DrawZoomingSpectrograms.Arguments
        • DrawZoomingSpectrograms.Arguments.ZoomActionType
      • AnalysisPrograms.EventStatistics
        • EventStatisticsAnalysis
        • EventStatisticsEntry
        • EventStatisticsEntry.Arguments
        • ImportedEvent
        • ImportedEvent.ImportedEventNameClassMap
      • AnalysisPrograms.Production
        • AnalysisOptionDevilException
        • CommandLineApplicationExtensions
        • CommandLineArgumentException
        • CustomHelpTextGenerator
        • ExceptionLookup
        • ExceptionLookup.ExceptionStyle
        • FileSystemProvider
        • FileSystemProvider.Options
        • InvalidAudioChannelException
        • InvalidDurationException
        • InvalidStartOrEndException
        • MissingDataException
        • NoDeveloperMethodException
        • PhysicalConsoleLogger
      • AnalysisPrograms.Production.Arguments
        • AnalyserArguments
        • DebugOptions
        • HelpArgs
        • ListArgs
        • LogVerbosity
        • MainArgs
        • SourceAndConfigArguments
        • SourceArguments
        • SourceConfigOutputDirArguments
        • SubCommandBase
      • AnalysisPrograms.Production.Parsers
        • DateTimeOffsetParser
        • DirectoryInfoParser
        • FileInfoParser
        • TimeSpanParser
      • AnalysisPrograms.Production.Validation
        • DirectoryExistsOrCreateAttribute
        • ExistingFileAttribute
        • InRangeAttribute
        • NotExistingFileAttribute
        • OneOfThese
      • AnalysisPrograms.Recognizers
        • GenericRecognizer
        • GenericRecognizer.GenericRecognizerConfig
        • NinoxStrenua
        • NinoxStrenua.NinoxStrenuaConfig
        • PetaurusAustralis
        • PetaurusAustralis.PetaurusAustralisConfig
        • PetaurusBreviceps
        • PetaurusBreviceps.PetaurusBrevicepsConfig
        • PetaurusNorfolcensis
        • PetaurusNorfolcensis.PetaurusNorfolcensisConfig
      • AnalysisPrograms.Recognizers.Base
        • BlobParameters
        • CommonParameters
        • DctParameters
        • ForwardTrackParameters
        • HarmonicParameters
        • IEventRecognizer
        • MinAndMaxBandwidthParameters
        • MultiRecognizer
        • MultiRecognizer.MultiRecognizerConfig
        • OnebinTrackParameters
        • OneframeTrackParameters
        • OscillationParameters
        • RecognizerBase
        • RecognizerBase.RecognizerConfig
        • RecognizerEntry
        • RecognizerEntry.Arguments
        • RecognizerResults
        • UpwardTrackParameters
      • AnalysisPrograms.Recognizers.Birds
        • ArdeaInsignis
        • AtrichornisRufescens
        • AtrichornisRufescens.AtrichornisRufescensConfig
        • CalyptorhynchusLathami
        • CalyptorhynchusLathami.CalyptorhynchusLathamiConfig
        • ClimacterisPicumnus
        • ClimacterisPicumnus.ClimacterisPicumnusConfig
        • LewiniaPectoralis
        • LewinsRailConfig
        • ManorinaMelanophrys
        • ManorinaMelanophrys.ManorinaMelanophrysConfig
        • NinoxConnivens
        • NinoxConnivens.NinoxConnivensConfig
        • TytoNovaehollandiae
        • TytoNovaehollandiae.TytoNovaehollandiaeConfig
        • TytoTenebricosa
        • TytoTenebricosa.TytoTenebricosaConfig
      • AnalysisPrograms.Recognizers.Frogs
        • LitoriaBicolor
        • LitoriaBicolorConfig
        • LitoriaCaerulea
        • LitoriaRothii
        • LitoriaRubella
      • AnalysisPrograms.SourcePreparers
        • LocalSourcePreparer
        • RemoteSourcePreparer
        • RemoteSourcePreparerException
      • AnalysisPrograms.SpectralPeakTracking
        • SpectralPeakTrackingConfig
        • SpectralPeakTrackingEntry
        • SpectralPeakTrackingEntry.Arguments
      • AnalysisPrograms.SpectrogramGenerator
        • Audio2Sonogram
        • Audio2Sonogram.Arguments
        • AudioToSonogramResult
        • SpectrogramGenerator
        • SpectrogramGeneratorConfig
        • SpectrogramImageType
      • AnalysisPrograms.StandardizedFeatures
        • StandardizedFeatureExtraction
        • StandardizedFeatureExtractionConfig
        • StandardizedFeatureExtractionConfig.BandsProperties
        • StandardizedFeatureExtractionConfig.Bandwidth
      • AudioAnalysisTools
        • AcousticComplexityIndex
        • AcousticEntropy
        • AcousticEvent
        • AcousticEvent.AcousticEventClassMap
        • ActivityAndCover
        • AnalysisKeys
        • BirdClefExperiment1
        • BirdClefExperiment1.Arguments
        • BirdClefExperiment1.Output
        • BlobEvent
        • ChannelIntegrity
        • ChannelIntegrity.Arguments
        • ChannelIntegrityIndices
        • ChirpEvent
        • ClickEvent
        • ClusterInfo
        • ConfigKeys
        • ConfigKeys.EndpointDetection
        • ConfigKeys.ImageSave
        • ConfigKeys.Mfcc
        • ConfigKeys.Recording
        • ConfigKeys.Sonogram
        • ConfigKeys.SonogramTypes
        • ConfigKeys.Windowing
        • CrossCorrelation
        • EndpointDetectionConfiguration
        • FindMatchingEvents
        • FrommoltProject
        • HarmonicAnalysis
        • HarmonicEvent
        • IPointData
        • ISignalToImage
        • ISpectralPoint
        • ITracks<T>
        • MfccConfiguration
        • OscillationEvent
        • Oscillations2010
        • Oscillations2012
        • Oscillations2014
        • Oscillations2014.FreqVsOscillationsResult
        • Oscillations2019
        • PointOfInterest
        • ResultsTools
        • RidgeDetection
        • RidgeDetection.RidgeDetectionConfiguration
        • SiteDescription
        • SpectralActivity
        • SpectralCentroid
        • SpectralClustering
        • SpectralClustering.ClusteringParameters
        • SpectralClustering.TrainingDataInfo
        • SpectralPeakTracking2018
        • SpectralPeakTracking2018.Output
        • SpectralPeakTrackingSettings
        • SpectralPeakTracks
        • SprTools
        • SummaryActivity
        • SunAndMoon
        • SunAndMoon.SunMoonTides
        • SURFFeatures
        • TemporalEvent
        • TowseySignalToImage
        • UnitConverters
        • WebSignalToImage
        • WhipEvent
        • WhistleEvent
      • AudioAnalysisTools.ContentDescriptionTools
        • ContentAlgorithms
        • ContentSignatures
        • ContentVisualization
        • DataProcessing
        • DescriptionResult
        • EditStatus
        • FunctionalTemplate
        • SourceAudioProvenance
        • TemplateCollection
        • TemplateManifest
      • AudioAnalysisTools.DSP
        • Clipping
        • DSP_Frames
        • DSP_Frames.EnvelopeAndFft
        • DSP_IIRFilter
        • DspFilters
        • FeatureExtraction
        • FeatureLearning
        • FeatureLearningSettings
        • FFT2D
        • FreqScaleType
        • FrequencyScale
        • KmeansClustering
        • KmeansClustering.Output
        • LocalContrastNormalisation
        • MFCCStuff
        • NoiseProfile
        • NoiseReductionType
        • NoiseRemoval_Briggs
        • NoiseRemovalModal
        • OctaveFreqScale
        • PatchSampling
        • PatchSampling.SamplingMethod
        • PcaWhitening
        • PcaWhitening.Output
        • PowerSpectralDensity
        • SNR
        • SNR.BackgroundNoise
        • SNR.SnrStatistics
        • WaveType
        • WavInfo
        • WavWriter
      • AudioAnalysisTools.Events
        • EventCommon
        • EventExtentions
        • EventFilters
        • InstantEvent
        • SpectralEvent
        • SpectralPoint
      • AudioAnalysisTools.Events.Drawing
        • EventDrawer
        • EventRenderingOptions
        • IDrawableEvent
      • AudioAnalysisTools.Events.Interfaces
        • IInstantEvent
        • ISpectralBand
        • ISpectralEvent
        • ITrack
      • AudioAnalysisTools.Events.Tracks
        • Track
        • TrackType
      • AudioAnalysisTools.Events.Types
        • ChatterEvent
        • CompositeEvent
        • EventConverters
        • EventPostProcessing
        • EventPostProcessing.BandwidthConfig
        • EventPostProcessing.DurationConfig
        • EventPostProcessing.PostProcessingConfig
        • EventPostProcessing.SidebandConfig
        • EventPostProcessing.SyllableSequenceConfig
        • EventPostProcessing.SyllableStackConfig
      • AudioAnalysisTools.EventStatistics
        • EventStatistics
        • EventStatistics.EventStatisticsClassMap
        • EventStatisticsCalculate
        • EventStatisticsConfiguration
      • AudioAnalysisTools.Indices
        • AnalyzerConfigIndexProperties
        • ConcatMode
        • GapsAndJoins
        • IIndexPropertyReferenceConfiguration
        • IndexCalculate
        • IndexCalculateConfig
        • IndexCalculateResult
        • IndexCalculateSixOnly
        • IndexDisplay
        • IndexDistributions
        • IndexDistributions.SpectralStats
        • IndexGenerationData
        • IndexMatrices
        • IndexProperties
        • IndexPropertiesCollection
        • InitialiseIndexProperties
        • RainIndices
        • RainIndices.RainStruct
        • SpectralIndexValues
        • SpectralIndexValuesForContentDescription
        • SpectralIndicesToAndFromTable
        • SpectralIndicesToAndFromTable.Arguments
        • SummaryIndexValues
      • AudioAnalysisTools.LongDurationSpectrograms
        • LdSpectrogram3D
        • LdSpectrogram3D.Arguments
        • LDSpectrogramClusters
        • LdSpectrogramConfig
        • LdSpectrogramDifference
        • LDSpectrogramDiscreteColour
        • LDSpectrogramDistance
        • LDSpectrogramRGB
        • LdSpectrogramRibbons
        • LdSpectrogramStitching
        • LdSpectrogramTStatistic
        • SpectrogramConstants
        • SpectrogramType
        • TimeOffsetSingleLayerSuperTile
        • ZoomFocusedSpectrograms
      • AudioAnalysisTools.LongDurationSpectrograms.Zooming
        • InvalidScaleException
        • SpectrogramZoomingConfig
        • ZoomCommon
        • ZoomParameters
        • ZoomTiledSpectrograms
      • AudioAnalysisTools.Scales
        • LinearScale
      • AudioAnalysisTools.StandardSpectrograms
        • AmplitudeSonogram
        • AmplitudeSpectrogram
        • BaseSonogram
        • DecibelSpectrogram
        • EnergySpectrogram
        • Image_MultiTrack
        • ImageTrack
        • SonogramConfig
        • SpectrogramAttributes
        • SpectrogramCepstral
        • SpectrogramMelScale
        • SpectrogramOctaveScale
        • SpectrogramSettings
        • SpectrogramSobelEdge
        • SpectrogramStandard
        • SpectrogramTools
        • TrackType
      • AudioAnalysisTools.TileImage
        • AbsoluteDateTilingProfile
        • DefaultSuperTile
        • DuplicateTileException
        • ImageComponent
        • ISuperTile
        • Layer
        • PanoJsTilingProfile
        • TileBias
        • Tiler
        • TilingProfile
      • AudioAnalysisTools.Tracks
        • ForwardTrackAlgorithm
        • OnebinTrackAlgorithm
        • OneframeTrackAlgorithm
        • UpwardTrackAlgorithm
      • AudioAnalysisTools.WavTools
        • AudioRecording
        • RecordingFetcher
        • TowseyWavReader
        • WavChooser
      • Be.Timvw.Framework.Collections.Generic
        • PropertyComparer<T>
      • BTR.Core.Linq
        • ExpressionExtensions
        • ExpressionVisitor
        • ExpressionVisitor<T>
      • log4net
        • LogExtensions
      • NeuralNets
        • ART
        • ART_2A
        • BinaryCluster
        • Cluster
        • FuzzyART
        • VQ
      • QutSensors.Shared
        • StatDescriptive
        • StatDescriptiveResult
      • SixLabors.ImageSharp
        • ImageSharpExtensions
      • System
        • ArrayExtensions
        • DateTimeAndTimeSpanExtensions
        • DateTimeAndTimeSpanExtensions.RoundingDirection
        • DoubleExtensions
        • DoubleSquareArrayExtensions
        • DoubleSquareArrayExtensions.MergingDirection
        • EnumerableExtensions
        • EnumExtensions
        • ExceptionsExtensions
        • ExtensionsString
        • FileInfoExtensions
        • FileInfoNameComparer
        • LoggedConsole
        • MathExtensions
        • NoConsole
        • ObjectExtensions
        • ProcessExtensions
        • ProcessExtensions.ParentProcessUtilities
        • ReflectionExtensions
        • SystemExtensions
        • TupleExtensions
      • System.Collections.Generic
        • DictionaryExtensions
      • System.Drawing
        • RectangleExtensions
      • System.IO
        • ExtensionsIO
      • System.Threading.Tasks
        • TaskExtensions
      • System.Xml.Linq
        • ExtensionsXml
      • TowseyLibrary
        • AutoAndCrossCorrelation
        • ColorCubeHelix
        • ColorCubeHelix.HslColor
        • ConfigDict
        • ConfigDictionary
        • ConfigurationExtensions
        • CsvTools
        • CubeHelix
        • DataTableTools
        • DataTools
        • DictionaryTools
        • Distribution
        • FFT
        • FFT.WindowFunc
        • FileTools
        • FunctionalTests
        • GaussianTools
        • GraphsAndCharts
        • Gratings
        • Histogram
        • ImageTools
        • Kernal
        • LLR
        • Log
        • Matrix3D
        • MatrixTools
        • NormalDist
        • Oblong
        • Oblong.OblongClassMap
        • OtsuThresholder
        • OtsuThresholder.Arguments
        • Plot
        • PolarCoordinates
        • PulseTrain
        • RandomNumber
        • RandomVariable
        • Spectrum
        • Statistics
        • StructureTensor
        • StructureTensor.RidgeTensorResult
        • StructureTensor.StructureTensorResult
        • SvdAndPca
        • TemporalMatrix
        • TernaryPlots
        • TestTools
        • TextUtilities
        • WaveletPacketDecomposition
        • WaveletPacketDecomposition.BinVector
        • WaveletTransformContinuous
        • WindowFunctions

    Class DataTools

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

    Fields

    | Improve this Doc View Source

    ln2

    Declaration
    public const double ln2 = 0.69314718
    Field Value
    Type Description
    Double
    | Improve this Doc View Source

    MonthNames

    assumes date string has following 8 digit strcture YYYYMMDD.

    Declaration
    public static string[] MonthNames
    Field Value
    Type Description
    String[]

    Methods

    | Improve this Doc View Source

    AddMatrices(Double[,], Double[,])

    ADD matrix m2 to matrix m1.

    Declaration
    public static double[, ] AddMatrices(double[, ] m1, double[, ] m2)
    Parameters
    Type Name Description
    Double[,] m1
    Double[,] m2
    Returns
    Type Description
    Double[,]
    | Improve this Doc View Source

    AddVectors(Double[], Double[])

    Add vector v2 to v1.

    Declaration
    public static double[] AddVectors(double[] v1, double[] v2)
    Parameters
    Type Name Description
    Double[] v1
    Double[] v2
    Returns
    Type Description
    Double[]
    | Improve this Doc View Source

    AntiLog(Double, Double)

    Declaration
    public static double AntiLog(double value, double logBase)
    Parameters
    Type Name Description
    Double value
    Double logBase
    Returns
    Type Description
    Double
    | Improve this Doc View Source

    AntiLogBase10(Double)

    Declaration
    public static double AntiLogBase10(double value)
    Parameters
    Type Name Description
    Double value
    Returns
    Type Description
    Double
    | Improve this Doc View Source

    areaUnderCurve(Double, Double, Double, Double)

    Declaration
    public static double areaUnderCurve(double x1, double y1, double x2, double y2)
    Parameters
    Type Name Description
    Double x1
    Double y1
    Double x2
    Double y2
    Returns
    Type Description
    Double
    | Improve this Doc View Source

    Array2Matrix(Byte[], Int32, Int32)

    Declaration
    public static byte[, ] Array2Matrix(byte[] array, int width, int height)
    Parameters
    Type Name Description
    Byte[] array
    Int32 width
    Int32 height
    Returns
    Type Description
    Byte[,]
    | Improve this Doc View Source

    Array2String(Double[])

    Declaration
    public static string Array2String(double[] array)
    Parameters
    Type Name Description
    Double[] array
    Returns
    Type Description
    String
    | Improve this Doc View Source

    Array2String(Int32[])

    Declaration
    public static string Array2String(int[] array)
    Parameters
    Type Name Description
    Int32[] array
    Returns
    Type Description
    String
    | Improve this Doc View Source

    Array2String(String[])

    Declaration
    public static string Array2String(string[] array)
    Parameters
    Type Name Description
    String[] array
    Returns
    Type Description
    String
    | Improve this Doc View Source

    Bool2Binary(Boolean[])

    Declaration
    public static double[] Bool2Binary(bool[] boolArray)
    Parameters
    Type Name Description
    Boolean[] boolArray
    Returns
    Type Description
    Double[]
    | Improve this Doc View Source

    BoundArray(Double[], Double, Double)

    bounds a sequence of numbers between a minimum and a maximum. Numbers that fall outside the bound are truncated to the bound.

    Declaration
    public static double[] BoundArray(double[] A, double min, double max)
    Parameters
    Type Name Description
    Double[] A

    array to be bound.

    Double min

    The minimum bound.

    Double max

    The maximum bound.

    Returns
    Type Description
    Double[]
    | Improve this Doc View Source

    BoundMatrix(Double[,], Double, Double)

    bounds a matrix of numbers between a minimum and a maximum. Numbers that fall outside the bound are truncated to the bound.

    Declaration
    public static double[, ] BoundMatrix(double[, ] M, double min, double max)
    Parameters
    Type Name Description
    Double[,] M

    the matrix to be bound.

    Double min

    The minimum bound.

    Double max

    The maximum bound.

    Returns
    Type Description
    Double[,]
    | Improve this Doc View Source

    Clip(Double[,], Double, Double)

    Declaration
    public static double[, ] Clip(double[, ] m, double minPercentile, double maxPercentile)
    Parameters
    Type Name Description
    Double[,] m
    Double minPercentile
    Double maxPercentile
    Returns
    Type Description
    Double[,]
    | Improve this Doc View Source

    combinatorial(Int32, Int32)

    Declaration
    public static long combinatorial(int N, int K)
    Parameters
    Type Name Description
    Int32 N
    Int32 K
    Returns
    Type Description
    Int64
    | Improve this Doc View Source

    ConcatenateVectors(List<Double[]>)

    Declaration
    public static double[] ConcatenateVectors(List<double[]> list)
    Parameters
    Type Name Description
    List<Double[]> list
    Returns
    Type Description
    Double[]
    | Improve this Doc View Source

    ConcatenateVectors(Double[][])

    Declaration
    public static double[] ConcatenateVectors(params double[][] vectors)
    Parameters
    Type Name Description
    Double[][] vectors
    Returns
    Type Description
    Double[]
    | Improve this Doc View Source

    ConvertJaggedToMatrix(Double[][])

    converts an array of arrays to a matrix.

    Declaration
    public static double[, ] ConvertJaggedToMatrix(double[][] list)
    Parameters
    Type Name Description
    Double[][] list
    Returns
    Type Description
    Double[,]
    | Improve this Doc View Source

    ConvertList2Matrix(List<Double[]>)

    Declaration
    public static double[, ] ConvertList2Matrix(List<double[]> list)
    Parameters
    Type Name Description
    List<Double[]> list
    Returns
    Type Description
    Double[,]
    | Improve this Doc View Source

    ConvertProbabilityDistribution2CummulativeProbabilites(Double[])

    calculates the cumulative probabilities from a prob array. assumes that values in the data vector are >= zero and sum = 1.0.

    Declaration
    public static double[] ConvertProbabilityDistribution2CummulativeProbabilites(double[] data)
    Parameters
    Type Name Description
    Double[] data
    Returns
    Type Description
    Double[]
    | Improve this Doc View Source

    ConvertStringArrayToDoubles(String[])

    Declaration
    public static double[] ConvertStringArrayToDoubles(string[] list)
    Parameters
    Type Name Description
    String[] list
    Returns
    Type Description
    Double[]
    | Improve this Doc View Source

    CosineSimilarity(Double[], Double[])

    Declaration
    public static double CosineSimilarity(double[] v1, double[] v2)
    Parameters
    Type Name Description
    Double[] v1
    Double[] v2
    Returns
    Type Description
    Double
    | Improve this Doc View Source

    CosineSimilarity(Double[,], Double[,])

    Declaration
    public static double CosineSimilarity(double[, ] m1, double[, ] m2)
    Parameters
    Type Name Description
    Double[,] m1
    Double[,] m2
    Returns
    Type Description
    Double
    | Improve this Doc View Source

    CountPeaks(Double[], out Int32, out Double)

    Declaration
    public static void CountPeaks(double[] array, out int count, out double sum)
    Parameters
    Type Name Description
    Double[] array
    Int32 count
    Double sum
    | Improve this Doc View Source

    CountPositives(Double[])

    counts the positive values in an array. Called by Classifier.Scan(Sonogram s).

    Declaration
    public static int CountPositives(double[] values)
    Parameters
    Type Name Description
    Double[] values
    Returns
    Type Description
    Int32
    | Improve this Doc View Source

    CountPositives(Int32[])

    Declaration
    public static int CountPositives(int[] values)
    Parameters
    Type Name Description
    Int32[] values
    Returns
    Type Description
    Int32
    | Improve this Doc View Source

    CountTrues(Boolean[])

    Declaration
    public static int CountTrues(bool[] peaks)
    Parameters
    Type Name Description
    Boolean[] peaks
    Returns
    Type Description
    Int32
    | Improve this Doc View Source

    Data2Bins(Int32[], Int32, Int32, Int32)

    Declaration
    public static int[] Data2Bins(int[] data, int min, int binWidth, int numBins)
    Parameters
    Type Name Description
    Int32[] data
    Int32 min
    Int32 binWidth
    Int32 numBins
    Returns
    Type Description
    Int32[]
    | Improve this Doc View Source

    DiffFromMean(Double[])

    shift values by their mean.

    Declaration
    public static double[] DiffFromMean(double[] V)
    Parameters
    Type Name Description
    Double[] V
    Returns
    Type Description
    Double[]
    | Improve this Doc View Source

    DiffFromMean(Double[,])

    shift values by their mean.

    Declaration
    public static double[, ] DiffFromMean(double[, ] m)
    Parameters
    Type Name Description
    Double[,] m
    Returns
    Type Description
    Double[,]
    | Improve this Doc View Source

    DotProduct(Double[], Double[])

    This method requires that v1 and v2 have same dimensions.

    Declaration
    public static double DotProduct(double[] v1, double[] v2)
    Parameters
    Type Name Description
    Double[] v1
    Double[] v2
    Returns
    Type Description
    Double

    The dot product.

    | Improve this Doc View Source

    DotProduct(Double[,], Double[,])

    Declaration
    public static double DotProduct(double[, ] m1, double[, ] m2)
    Parameters
    Type Name Description
    Double[,] m1
    Double[,] m2
    Returns
    Type Description
    Double
    | Improve this Doc View Source

    Entropy(Double[])

    Calculates the entropy of the passed discrete distribution.

    It is assumed that each of the elements in distr[] represent the probability of that state and that the probabilities sum to 1.0

    Math.log() is base e. To convert to log base 2 need to divide by the natural log of 2 = ln2 = 0.69314. NOTE: In the limit as rf approaches 0, rf*log(rf) = 0.

    Declaration
    public static double Entropy(double[] distr)
    Parameters
    Type Name Description
    Double[] distr
    Returns
    Type Description
    Double
    | Improve this Doc View Source

    Entropy(Double[,])

    Declaration
    public static double Entropy(double[, ] matrixDistr)
    Parameters
    Type Name Description
    Double[,] matrixDistr
    Returns
    Type Description
    Double
    | Improve this Doc View Source

    EntropyNormalised(Double[])

    returns the entropy of a vector of values normalized for vector length.

    Declaration
    public static double EntropyNormalised(double[] v)
    Parameters
    Type Name Description
    Double[] v
    Returns
    Type Description
    Double
    | Improve this Doc View Source

    EntropyNormalised(Int32[])

    Declaration
    public static double EntropyNormalised(int[] v)
    Parameters
    Type Name Description
    Int32[] v
    Returns
    Type Description
    Double
    | Improve this Doc View Source

    EuclideanDistance(Byte[], Byte[])

    returns EUCLIDEAN DISTANCE BETWEEN two vectors of byte.

    Declaration
    public static double EuclideanDistance(byte[] v1, byte[] v2)
    Parameters
    Type Name Description
    Byte[] v1
    Byte[] v2
    Returns
    Type Description
    Double
    | Improve this Doc View Source

    EuclideanDistance(Double[], Double[])

    returns EUCLIDEAN DISTANCE BETWEEN two vectors.

    Declaration
    public static double EuclideanDistance(double[] v1, double[] v2)
    Parameters
    Type Name Description
    Double[] v1
    Double[] v2
    Returns
    Type Description
    Double
    | Improve this Doc View Source

    EuclideanDistance(Double[,], Double[,])

    returns EUCLIDIAN DISTANCE BETWEEN two matrices.

    Declaration
    public double EuclideanDistance(double[, ] m1, double[, ] m2)
    Parameters
    Type Name Description
    Double[,] m1
    Double[,] m2
    Returns
    Type Description
    Double
    | Improve this Doc View Source

    filterMovingAverage(Double[], Int32)

    A new and more accurate version of the moving average filter. The previous version had some errors in calculation of the trailing edge. This version is also more efficient because it does not have a double loop. It also makes a distinction between odd and even window width.

    Declaration
    public static double[] filterMovingAverage(double[] signal, int width)
    Parameters
    Type Name Description
    Double[] signal
    Int32 width
    Returns
    Type Description
    Double[]
    | Improve this Doc View Source

    filterMovingAverage(Int32[], Int32)

    Declaration
    public static double[] filterMovingAverage(int[] signal, int width)
    Parameters
    Type Name Description
    Int32[] signal
    Int32 width
    Returns
    Type Description
    Double[]
    | Improve this Doc View Source

    filterMovingAverage(Single[], Int32)

    Declaration
    public static float[] filterMovingAverage(float[] signal, int width)
    Parameters
    Type Name Description
    Single[] signal
    Int32 width
    Returns
    Type Description
    Single[]
    | Improve this Doc View Source

    filterMovingAverageEven(Double[], Int32)

    Declaration
    public static double[] filterMovingAverageEven(double[] signal, int width)
    Parameters
    Type Name Description
    Double[] signal
    Int32 width
    Returns
    Type Description
    Double[]
    | Improve this Doc View Source

    filterMovingAverageOdd(Double[], Int32)

    Declaration
    public static double[] filterMovingAverageOdd(double[] signal, int width)
    Parameters
    Type Name Description
    Double[] signal
    Int32 width
    Returns
    Type Description
    Double[]
    | Improve this Doc View Source

    filterMovingAverageOLD(Double[], Int32)

    An old and now deprecated version of the moving averge filter.

    Declaration
    public static double[] filterMovingAverageOLD(double[] signal, int width)
    Parameters
    Type Name Description
    Double[] signal
    Int32 width
    Returns
    Type Description
    Double[]
    | Improve this Doc View Source

    GapLengths(Boolean[])

    returns a list of gaps between the trues in a boolean array.

    Declaration
    public static List<int> GapLengths(bool[] binaryArray)
    Parameters
    Type Name Description
    Boolean[] binaryArray
    Returns
    Type Description
    List<Int32>
    | Improve this Doc View Source

    GapLengths(Double[])

    returns a list of gaps between 1s in a binary array.

    Declaration
    public static List<int> GapLengths(double[] binaryArray)
    Parameters
    Type Name Description
    Double[] binaryArray
    Returns
    Type Description
    List<Int32>
    | Improve this Doc View Source

    GetArrayTypes(List<String[]>)

    Declaration
    public static Type[] GetArrayTypes(List<string[]> listOfArrays)
    Parameters
    Type Name Description
    List<String[]> listOfArrays
    Returns
    Type Description
    Type[]
    | Improve this Doc View Source

    GetByteDistribution(Byte[,])

    returns the min and max values in a matrix of byte.

    Declaration
    public static int[] GetByteDistribution(byte[, ] data)
    Parameters
    Type Name Description
    Byte[,] data
    Returns
    Type Description
    Int32[]
    | Improve this Doc View Source

    GetColumn(Double[,], Int32)

    Declaration
    public static double[] GetColumn(double[, ] m, int colID)
    Parameters
    Type Name Description
    Double[,] m
    Int32 colID
    Returns
    Type Description
    Double[]
    | Improve this Doc View Source

    GetColumnsAverages(Double[,])

    Declaration
    public static double[] GetColumnsAverages(double[, ] m)
    Parameters
    Type Name Description
    Double[,] m
    Returns
    Type Description
    Double[]
    | Improve this Doc View Source

    GetColumnSum(Int32[,], Int32)

    Declaration
    public static int GetColumnSum(int[, ] m, int colID)
    Parameters
    Type Name Description
    Int32[,] m
    Int32 colID
    Returns
    Type Description
    Int32
    | Improve this Doc View Source

    GetColumnSums(Byte[,])

    Declaration
    public static int[] GetColumnSums(byte[, ] m)
    Parameters
    Type Name Description
    Byte[,] m
    Returns
    Type Description
    Int32[]
    | Improve this Doc View Source

    GetEventLengths(Boolean[])

    Declaration
    public static List<int> GetEventLengths(bool[] boolArray)
    Parameters
    Type Name Description
    Boolean[] boolArray
    Returns
    Type Description
    List<Int32>
    | Improve this Doc View Source

    GetHistogramOfDistancesBetweenEveryPairOfPeaks(Double[], Double)

    Declaration
    public static int[] GetHistogramOfDistancesBetweenEveryPairOfPeaks(double[] data, double threshold)
    Parameters
    Type Name Description
    Double[] data
    Double threshold
    Returns
    Type Description
    Int32[]
    | Improve this Doc View Source

    GetInitialisedArray(Int32, Double)

    returns an array of double initialised with passed value.

    Declaration
    public static double[] GetInitialisedArray(int length, double iniValue)
    Parameters
    Type Name Description
    Int32 length
    Double iniValue
    Returns
    Type Description
    Double[]
    | Improve this Doc View Source

    GetMaxIndex(List<Int32>)

    Declaration
    public static int GetMaxIndex(List<int> data)
    Parameters
    Type Name Description
    List<Int32> data
    Returns
    Type Description
    Int32
    | Improve this Doc View Source

    GetMaxIndex(Double[])

    Same as above method but returns index instead of outting it! returns the index of max value in an array of doubles. array index starts at zero.

    Declaration
    public static int GetMaxIndex(double[] data)
    Parameters
    Type Name Description
    Double[] data
    Returns
    Type Description
    Int32
    | Improve this Doc View Source

    getMaxIndex(Double[], out Int32)

    Declaration
    public static void getMaxIndex(double[] data, out int indexMax)
    Parameters
    Type Name Description
    Double[] data
    Int32 indexMax
    | Improve this Doc View Source

    GetMaxIndex(Int32[])

    Same as above method but returns index instead of outting it! returns the index of max value in an array of doubles. array index starts at zero. If more than one value is equal max, then returns location of first.

    Declaration
    public static int GetMaxIndex(int[] data)
    Parameters
    Type Name Description
    Int32[] data
    Returns
    Type Description
    Int32
    | Improve this Doc View Source

    getMaxIndex(Int32[], out Int32)

    Declaration
    public static void getMaxIndex(int[] data, out int indexMax)
    Parameters
    Type Name Description
    Int32[] data
    Int32 indexMax
    | Improve this Doc View Source

    GetMedian(Double[])

    return median of an array.

    Declaration
    public static double GetMedian(double[] v)
    Parameters
    Type Name Description
    Double[] v
    Returns
    Type Description
    Double
    | Improve this Doc View Source

    GetMinIndex(Double[])

    same as above but returns the index of data element having minimum value.

    Declaration
    public static int GetMinIndex(double[] data)
    Parameters
    Type Name Description
    Double[] data
    Returns
    Type Description
    Int32
    | Improve this Doc View Source

    GetModeAndOneTailedStandardDeviation(Double[], out Int32[], out Double, out Double, out Int32, out Double, out Double)

    This method is used to calculate the mean and SD of acoustic indices whose distributions are very skewed, e.g. temporal entropy and cover. It returns the min, max, mode and one-sided standard deviation of an array of doubles. NOTE: The mode is prevented from being in lowest two bins because we typically do not want the mode to be near the minimum value of the distribution. This method accomodates the possibility that the distribution of index values is a truncated Gaussian or a skewed Gaussian. Once the modal position has been determined, it is assumed that the Sd is to be determined from the long-tailed side. i.e. the modal position is assumed to be the average of the underlying distribution.

    Declaration
    public static void GetModeAndOneTailedStandardDeviation(double[] values, out int[] histogram, out double min, out double max, out int modalBin, out double mode, out double SD)
    Parameters
    Type Name Description
    Double[] values

    an array of values.

    Int32[] histogram

    histogram dervied from passed array.

    Double min

    min value.

    Double max

    max value in the array.

    Int32 modalBin

    bin having modal value.

    Double mode

    the value of the mode.

    Double SD

    standard deviation of the distribution.

    | Improve this Doc View Source

    GetModeAndOneTailedStandardDeviation(Int32[], out Int32, out Int32)

    Assuming the passed histogram represents a distribution of values (derived from acoustic indices). which a signal is added to Gaussian noise, This method accomodates the possibility that the distribution of values is a truncated Gaussian or a skewed Gaussian. Once the modal position has been determined, it is assumed that the Sd is to be determined from the long-tailed side. i.e. the modal position is assumed to be the average of the underlying distribution. This method is used to calculate the mean and SD of acoustic indices whose distrubtions are very skewed, e.g. temporal entropy and cover.

    Declaration
    public static void GetModeAndOneTailedStandardDeviation(int[] histo, out int indexOfMode, out int indexOfOneSD)
    Parameters
    Type Name Description
    Int32[] histo
    Int32 indexOfMode
    Int32 indexOfOneSD
    | Improve this Doc View Source

    GetNthLargestValue(Double[], Int32)

    Declaration
    public static double GetNthLargestValue(double[] data, int N)
    Parameters
    Type Name Description
    Double[] data
    Int32 N
    Returns
    Type Description
    Double
    | Improve this Doc View Source

    GetNthSmallestValue(Double[], Int32)

    Declaration
    public static double GetNthSmallestValue(double[] data, int N)
    Parameters
    Type Name Description
    Double[] data
    Int32 N
    Returns
    Type Description
    Double
    | Improve this Doc View Source

    GetOrderedPeakLocations(Double[], Int32)

    Declaration
    public static int[] GetOrderedPeakLocations(double[] peakValues, int count)
    Parameters
    Type Name Description
    Double[] peakValues
    Int32 count
    Returns
    Type Description
    Int32[]
    | Improve this Doc View Source

    GetPeaks(Double[])

    Finds the local maxima in a vector.

    Declaration
    public static bool[] GetPeaks(double[] data)
    Parameters
    Type Name Description
    Double[] data
    Returns
    Type Description
    Boolean[]
    | Improve this Doc View Source

    GetPeaks(Double[], Double)

    Finds the local peaks in a vector whose value exceeds the passed threshold.

    Declaration
    public static bool[] GetPeaks(double[] data, double threshold)
    Parameters
    Type Name Description
    Double[] data
    Double threshold
    Returns
    Type Description
    Boolean[]
    | Improve this Doc View Source

    GetPeakValues(Double[])

    returns an array showing values at the peaks.

    Declaration
    public static double[] GetPeakValues(double[] array)
    Parameters
    Type Name Description
    Double[] array
    Returns
    Type Description
    Double[]
    | Improve this Doc View Source

    GetRankedIndicesInAscendingOrder(Double[])

    Declaration
    public static int[] GetRankedIndicesInAscendingOrder(double[] data)
    Parameters
    Type Name Description
    Double[] data
    Returns
    Type Description
    Int32[]
    | Improve this Doc View Source

    GetRankedIndicesInDecendingOrder(Double[])

    Declaration
    public static int[] GetRankedIndicesInDecendingOrder(double[] data)
    Parameters
    Type Name Description
    Double[] data
    Returns
    Type Description
    Int32[]
    | Improve this Doc View Source

    GetRow(Byte[,], Int32)

    Declaration
    public static byte[] GetRow(byte[, ] m, int rowID)
    Parameters
    Type Name Description
    Byte[,] m
    Int32 rowID
    Returns
    Type Description
    Byte[]
    | Improve this Doc View Source

    GetRow(Double[,], Int32)

    Declaration
    public static double[] GetRow(double[, ] m, int rowID)
    Parameters
    Type Name Description
    Double[,] m
    Int32 rowID
    Returns
    Type Description
    Double[]
    | Improve this Doc View Source

    GetRowSum(Byte[,], Int32)

    Declaration
    public static int GetRowSum(byte[, ] m, int rowID)
    Parameters
    Type Name Description
    Byte[,] m
    Int32 rowID
    Returns
    Type Description
    Int32
    | Improve this Doc View Source

    GetRowSum(Double[,], Int32)

    Declaration
    public static double GetRowSum(double[, ] m, int rowID)
    Parameters
    Type Name Description
    Double[,] m
    Int32 rowID
    Returns
    Type Description
    Double
    | Improve this Doc View Source

    GetRowSum(Int32[,], Int32)

    Declaration
    public static int GetRowSum(int[, ] m, int rowID)
    Parameters
    Type Name Description
    Int32[,] m
    Int32 rowID
    Returns
    Type Description
    Int32
    | Improve this Doc View Source

    GetRowSums(Byte[,])

    Declaration
    public static int[] GetRowSums(byte[, ] m)
    Parameters
    Type Name Description
    Byte[,] m
    Returns
    Type Description
    Int32[]
    | Improve this Doc View Source

    GetTroughs(Double[])

    Declaration
    public static bool[] GetTroughs(double[] data)
    Parameters
    Type Name Description
    Double[] data
    Returns
    Type Description
    Boolean[]
    | Improve this Doc View Source

    GetWeightedCombinationOfColumns(List<Double[]>, Double[])

    Declaration
    public static double[] GetWeightedCombinationOfColumns(List<double[]> arrays, double[] wts)
    Parameters
    Type Name Description
    List<Double[]> arrays
    Double[] wts
    Returns
    Type Description
    Double[]
    | Improve this Doc View Source

    HammingDistance(Double[], Double[])

    Calculates Hamming distance for two vectors of doubles. d[i] = 1 if((int)Math.Round(Math.Abs(v1[i] - v2[i])) == 1 ).

    Declaration
    public static int HammingDistance(double[] v1, double[] v2)
    Parameters
    Type Name Description
    Double[] v1
    Double[] v2
    Returns
    Type Description
    Int32
    | Improve this Doc View Source

    IsArrayOfBoolean(String[])

    Declaration
    public static bool IsArrayOfBoolean(string[] array)
    Parameters
    Type Name Description
    String[] array
    Returns
    Type Description
    Boolean
    | Improve this Doc View Source

    IsArrayOfDouble(String[])

    Declaration
    public static bool IsArrayOfDouble(string[] array)
    Parameters
    Type Name Description
    String[] array
    Returns
    Type Description
    Boolean
    | Improve this Doc View Source

    IsArrayOfInt(String[])

    Declaration
    public static bool IsArrayOfInt(string[] array)
    Parameters
    Type Name Description
    String[] array
    Returns
    Type Description
    Boolean
    | Improve this Doc View Source

    IsPowerOfTwo(UInt64)

    Declaration
    public static bool IsPowerOfTwo(ulong x)
    Parameters
    Type Name Description
    UInt64 x
    Returns
    Type Description
    Boolean
    | Improve this Doc View Source

    Log10Values(Double[], Double)

    Gets the log10 of an array of values. Assume that all values are non-zero and positive.

    Declaration
    public static double[] Log10Values(double[] data, double epsilon)
    Parameters
    Type Name Description
    Double[] data

    The input data array.

    Double epsilon

    The smallest accepted non-zero value.

    Returns
    Type Description
    Double[]
    | Improve this Doc View Source

    LogicalORofTwoVectors(Byte[], Byte[])

    Logical AND of two vectors vector v2 to v1.

    Declaration
    public static byte[] LogicalORofTwoVectors(byte[] v1, byte[] v2)
    Parameters
    Type Name Description
    Byte[] v1
    Byte[] v2
    Returns
    Type Description
    Byte[]
    | Improve this Doc View Source

    ManhattanDistance(Double[], Double[])

    returns MANHATTAN DISTANCE BETWEEN two vectors.

    Declaration
    public static double ManhattanDistance(double[] v1, double[] v2)
    Parameters
    Type Name Description
    Double[] v1
    Double[] v2
    Returns
    Type Description
    Double
    | Improve this Doc View Source

    Matrix2Array(Byte[,])

    Declaration
    public static byte[] Matrix2Array(byte[, ] M)
    Parameters
    Type Name Description
    Byte[,] M
    Returns
    Type Description
    Byte[]
    | Improve this Doc View Source

    Matrix2Array(Double[,,])

    Declaration
    public static double[] Matrix2Array(double[,, ] M)
    Parameters
    Type Name Description
    Double[,,] M
    Returns
    Type Description
    Double[]
    | Improve this Doc View Source

    Matrix2Array(Double[,])

    Converts a matrix to a vector by concatenating columns.

    Declaration
    public static double[] Matrix2Array(double[, ] m)
    Parameters
    Type Name Description
    Double[,] m
    Returns
    Type Description
    Double[]
    | Improve this Doc View Source

    Matrix2Array(Int32[,,])

    Declaration
    public static int[] Matrix2Array(int[,, ] M)
    Parameters
    Type Name Description
    Int32[,,] M
    Returns
    Type Description
    Int32[]
    | Improve this Doc View Source

    Matrix2Array(Int32[,])

    Declaration
    public static int[] Matrix2Array(int[, ] m)
    Parameters
    Type Name Description
    Int32[,] m
    Returns
    Type Description
    Int32[]
    | Improve this Doc View Source

    Matrix2Binary(Double[,], Double)

    Declaration
    public static double[, ] Matrix2Binary(double[, ] M, double threshold)
    Parameters
    Type Name Description
    Double[,] M
    Double threshold
    Returns
    Type Description
    Double[,]
    | Improve this Doc View Source

    MatrixRotate90Anticlockwise(Double[,])

    Rotates a matrix 90 degrees anticlockwise. Used for Syntactic pattern recognition Converts Image matrix to Spectrogram data orientation.

    Declaration
    public static double[, ] MatrixRotate90Anticlockwise(double[, ] m)
    Parameters
    Type Name Description
    Double[,] m
    Returns
    Type Description
    Double[,]
    | Improve this Doc View Source

    MatrixRotate90Clockwise(Char[,])

    Rotates a matrix 90 degrees clockwise. Used for Syntactic pattern recognition Converts Image matrix to Spectrogram data orientation.

    Declaration
    public static char[, ] MatrixRotate90Clockwise(char[, ] m)
    Parameters
    Type Name Description
    Char[,] m
    Returns
    Type Description
    Char[,]
    | Improve this Doc View Source

    MatrixRotate90Clockwise(Double[,])

    Rotates a matrix 90 degrees clockwise.

    Declaration
    public static double[, ] MatrixRotate90Clockwise(double[, ] m)
    Parameters
    Type Name Description
    Double[,] m
    Returns
    Type Description
    Double[,]
    | Improve this Doc View Source

    MatrixTranspose(Byte[,])

    performs a matrix transform.

    Declaration
    public static byte[, ] MatrixTranspose(byte[, ] M)
    Parameters
    Type Name Description
    Byte[,] M

    the matrix to transform.

    Returns
    Type Description
    Byte[,]
    | Improve this Doc View Source

    MatrixTranspose(Char[,])

    transforms a matrix of char. Used for Syntatctic pttern recognition.

    Declaration
    public static char[, ] MatrixTranspose(char[, ] m)
    Parameters
    Type Name Description
    Char[,] m
    Returns
    Type Description
    Char[,]
    | Improve this Doc View Source

    MatrixTranspose(Double[,])

    performs a matrix transform.

    Declaration
    public static double[, ] MatrixTranspose(double[, ] M)
    Parameters
    Type Name Description
    Double[,] M

    the matrix to transform.

    Returns
    Type Description
    Double[,]
    | Improve this Doc View Source

    MinMax(Byte[], out Byte, out Byte)

    Declaration
    public static void MinMax(byte[] data, out byte min, out byte max)
    Parameters
    Type Name Description
    Byte[] data
    Byte min
    Byte max
    | Improve this Doc View Source

    MinMax(Byte[,], out Byte, out Byte)

    returns the min and max values in a matrix of byte.

    Declaration
    public static void MinMax(byte[, ] data, out byte min, out byte max)
    Parameters
    Type Name Description
    Byte[,] data
    Byte min
    Byte max
    | Improve this Doc View Source

    MinMax(Double[], out Double, out Double)

    Declaration
    public static void MinMax(double[] data, out double min, out double max)
    Parameters
    Type Name Description
    Double[] data
    Double min
    Double max
    | Improve this Doc View Source

    MinMax(Double[], out Int32, out Int32, out Double, out Double)

    Declaration
    public static void MinMax(double[] data, out int indexMin, out int indexMax, out double min, out double max)
    Parameters
    Type Name Description
    Double[] data
    Int32 indexMin
    Int32 indexMax
    Double min
    Double max
    | Improve this Doc View Source

    MinMax(Double[,], out Double, out Double)

    returns the min and max values in a matrix of doubles.

    Declaration
    public static void MinMax(double[, ] data, out double min, out double max)
    Parameters
    Type Name Description
    Double[,] data
    Double min
    Double max
    | Improve this Doc View Source

    MinMax(Int32[], out Int32, out Int32)

    Returns the min and max of a set of integer values in the passed array.

    Declaration
    public static void MinMax(int[] data, out int min, out int max)
    Parameters
    Type Name Description
    Int32[] data

    array ofintegers.

    Int32 min

    min value to return.

    Int32 max

    max value to return.

    | Improve this Doc View Source

    MinMaxAv(Double[], out Double, out Double, out Double)

    Declaration
    public static void MinMaxAv(double[] data, out double min, out double max, out double av)
    Parameters
    Type Name Description
    Double[] data
    Double min
    Double max
    Double av
    | Improve this Doc View Source

    ModalValue(Double[], out Double, out Double)

    This algorithm is derived from the Lamel et al algorithm used in the SNR class. Only difference is return the true model value whereever it is. The relevant lines have been commented.

    Declaration
    public static void ModalValue(double[] array, out double Q, out double oneSD)
    Parameters
    Type Name Description
    Double[] array
    Double Q
    Double oneSD
    | Improve this Doc View Source

    MutualInformation(Int32[,])

    Declaration
    public static double MutualInformation(int[, ] counts)
    Parameters
    Type Name Description
    Int32[,] counts
    Returns
    Type Description
    Double
    | Improve this Doc View Source

    normalise(Double[])

    Normalizes the passed array between 0,1. Ensures all values are positive. Minimum array value set = 0.0. Maximum array value set = 1.0.

    Declaration
    public static double[] normalise(double[] v)
    Parameters
    Type Name Description
    Double[] v
    Returns
    Type Description
    Double[]
    | Improve this Doc View Source

    Normalise(Double[], Double, Double)

    normalises the values in a vector between the passed min and max.

    Declaration
    public static double[] Normalise(double[] v, double normMin, double normMax)
    Parameters
    Type Name Description
    Double[] v
    Double normMin
    Double normMax
    Returns
    Type Description
    Double[]
    | Improve this Doc View Source

    Normalise(Double[], Double, out Double[], out Double)

    Normalises a vector in 0, 1 and also returns a threshold value accordingly normalised.

    Declaration
    public static void Normalise(double[] v, double threshold, out double[] output, out double normalisedThreshold)
    Parameters
    Type Name Description
    Double[] v
    Double threshold
    Double[] output
    Double normalisedThreshold
    | Improve this Doc View Source

    normalise(Double[,])

    normalised matrix of real values to [0,1].

    Declaration
    public static double[, ] normalise(double[, ] m)
    Parameters
    Type Name Description
    Double[,] m
    Returns
    Type Description
    Double[,]
    | Improve this Doc View Source

    Normalise(Double[,], Double, Double)

    normalises the values in a matrix between the passed min and max.

    Declaration
    public static double[, ] Normalise(double[, ] m, double normMin, double normMax)
    Parameters
    Type Name Description
    Double[,] m
    Double normMin
    Double normMax
    Returns
    Type Description
    Double[,]
    | Improve this Doc View Source

    normalise(Int32[])

    normalizes the passed array between 0,1. Ensures all values are positive. WARNING: Where the min = max (e.g. a uniform distribution), this method will return an array of NaN. The calling method needs to check for this.

    Declaration
    public static double[] normalise(int[] v)
    Parameters
    Type Name Description
    Int32[] v
    Returns
    Type Description
    Double[]
    | Improve this Doc View Source

    normalise_zeroEdge(Double[,], Double, Double)

    normalises the values in a matrix such that the minimum value is the average of the edge values. Truncate thos original values that are below the edge average. This method is used to NormaliseMatrixValues image templates where there should be no power at the edge.

    Declaration
    public static double[, ] normalise_zeroEdge(double[, ] m, double normMin, double normMax)
    Parameters
    Type Name Description
    Double[,] m
    Double normMin
    Double normMax
    Returns
    Type Description
    Double[,]
    | Improve this Doc View Source

    Normalise2Probabilites(Double[])

    normalises an array of doubles to probabilities that sum to one. assumes that values in the data vector are >= zero.

    Declaration
    public static double[] Normalise2Probabilites(double[] data)
    Parameters
    Type Name Description
    Double[] data
    Returns
    Type Description
    Double[]
    | Improve this Doc View Source

    normalise2UnitLength(Double[])

    Declaration
    public static double[] normalise2UnitLength(double[] v)
    Parameters
    Type Name Description
    Double[] v
    Returns
    Type Description
    Double[]
    | Improve this Doc View Source

    normalise2UnitLength(Int32[])

    Declaration
    public static double[] normalise2UnitLength(int[] v)
    Parameters
    Type Name Description
    Int32[] v
    Returns
    Type Description
    Double[]
    | Improve this Doc View Source

    NormaliseArea(Double[])

    Normalizes an array so that the sum of its values (area under curve) = 1.0 Use to express data as probability function. WARNING: ONLY USE THIS METHOD IF ARRAY CONTAINS NEGATIVE VALUES First of all normalises array into [0,1] WARNING: This method will NOT work where have a uniform distribution of negative values.

    Declaration
    public static double[] NormaliseArea(double[] data)
    Parameters
    Type Name Description
    Double[] data
    Returns
    Type Description
    Double[]
    | Improve this Doc View Source

    NormaliseArea(Int32[])

    Normalizes an array so that the sum of its values (area under curve) = 1.0 Use to express data as probability function. WARNING: This method will NOT work where have a uniform distribution of negative values.

    Declaration
    public static double[] NormaliseArea(int[] array)
    Parameters
    Type Name Description
    Int32[] array
    Returns
    Type Description
    Double[]
    | Improve this Doc View Source

    NormaliseByScalingMaxValueToOne(Double[])

    Normalises the passed vector by keeping the vector's zero but scaling the max value down to 1.0. WARNING: This method assumes that all values in the passed array are >= zero.

    Declaration
    public static double[] NormaliseByScalingMaxValueToOne(double[] v)
    Parameters
    Type Name Description
    Double[] v
    Returns
    Type Description
    Double[]
    | Improve this Doc View Source

    NormaliseInZeroOne(Double, Double, Double)

    normalises the values in a vector such that the passed min value = 0 and the passed max value = 1.0 Values LT 0.0 and GT 1.0 are truncated.

    Declaration
    public static double NormaliseInZeroOne(double value, double normMin, double normMax)
    Parameters
    Type Name Description
    Double value
    Double normMin
    Double normMax
    Returns
    Type Description
    Double
    | Improve this Doc View Source

    NormaliseInZeroOne(Double[], Double, Double)

    normalises the values in a vector such that the passed min value = 0 and the passed max value = 1.0 Values LT 0.0 and GT 1.0 are truncated.

    Declaration
    public static double[] NormaliseInZeroOne(double[] v, double normMin, double normMax)
    Parameters
    Type Name Description
    Double[] v
    Double normMin
    Double normMax
    Returns
    Type Description
    Double[]
    | Improve this Doc View Source

    NormaliseInZeroOne(Double[,], Double, Double)

    Declaration
    public static double[, ] NormaliseInZeroOne(double[, ] m, double normMin, double normMax)
    Parameters
    Type Name Description
    Double[,] m
    Double normMin
    Double normMax
    Returns
    Type Description
    Double[,]
    | Improve this Doc View Source

    NormaliseReverseInZeroOne(Double[,], Double, Double)

    Declaration
    public static double[, ] NormaliseReverseInZeroOne(double[, ] m, double normMin, double normMax)
    Parameters
    Type Name Description
    Double[,] m
    Double normMin
    Double normMax
    Returns
    Type Description
    Double[,]
    | Improve this Doc View Source

    NormaliseValue(Double, Double, Double)

    Declaration
    public double NormaliseValue(double val, double normMin, double normMax)
    Parameters
    Type Name Description
    Double val
    Double normMin
    Double normMax
    Returns
    Type Description
    Double
    | Improve this Doc View Source

    NormaliseValues(Int32[], Int32, Int32)

    Declaration
    public static double[] NormaliseValues(int[] val, int normMin, int normMax)
    Parameters
    Type Name Description
    Int32[] val
    Int32 normMin
    Int32 normMax
    Returns
    Type Description
    Double[]
    | Improve this Doc View Source

    Order(Double[], Double[])

    Declaration
    public static double[] Order(double[] array, double[] order)
    Parameters
    Type Name Description
    Double[] array
    Double[] order
    Returns
    Type Description
    Double[]
    | Improve this Doc View Source

    padString_post(String, Int32)

    Declaration
    public static string padString_post(string str, int width)
    Parameters
    Type Name Description
    String str
    Int32 width
    Returns
    Type Description
    String
    | Improve this Doc View Source

    padString_pre(String, Int32)

    Declaration
    public static string padString_pre(string str, int width)
    Parameters
    Type Name Description
    String str
    Int32 width
    Returns
    Type Description
    String
    | Improve this Doc View Source

    PatternSimilarity(Double[], Double[])

    Declaration
    public static double PatternSimilarity(double[] pattern, double[] data)
    Parameters
    Type Name Description
    Double[] pattern
    Double[] data
    Returns
    Type Description
    Double
    | Improve this Doc View Source

    PeakLocations(Double[], Double)

    returns a list containing integer index of every peak > threshold.

    Declaration
    public static List<int> PeakLocations(double[] array, double threshold)
    Parameters
    Type Name Description
    Double[] array
    Double threshold
    Returns
    Type Description
    List<Int32>
    | Improve this Doc View Source

    PeakLocations(Double[], Double, out Int32, out Double[])

    returns an array showing locaiton of peaks.

    Declaration
    public static void PeakLocations(double[] array, double threshold, out int count, out double[] locations)
    Parameters
    Type Name Description
    Double[] array
    Double threshold
    Int32 count
    Double[] locations
    | Improve this Doc View Source

    Peaks_CropLowAmplitude(Double[], Double)

    prunes the start and end of an array to remove low values.

    Declaration
    public static int[] Peaks_CropLowAmplitude(double[] data, double threshold)
    Parameters
    Type Name Description
    Double[] data

    an array of double.

    Double threshold

    must be in range [0,1].

    Returns
    Type Description
    Int32[]
    | Improve this Doc View Source

    Peaks_CropToFirstAndLast(Double[], Double)

    Returns the location of the first and last peaks.

    Declaration
    public static int[] Peaks_CropToFirstAndLast(double[] data, double severity)
    Parameters
    Type Name Description
    Double[] data
    Double severity
    Returns
    Type Description
    Int32[]
    | Improve this Doc View Source

    PercentileCutoffs(Double[,], Double, Double, out Double, out Double)

    returns the min and max percentile values of the values in passed matrix. Must have previously calculated the min and max values in the matrix.

    Declaration
    public static void PercentileCutoffs(double[, ] matrix, double minPercentile, double maxPercentile, out double minCut, out double maxCut)
    Parameters
    Type Name Description
    Double[,] matrix

    the matrix.

    Double minPercentile
    Double maxPercentile
    Double minCut

    power value equivalent to minPercentile.

    Double maxCut

    power value equivalent to maxPercentile.

    | Improve this Doc View Source

    Periodicity(Double[], Int32, Int32)

    Searches an array of values for periodicity. Calls the method PeriodicityDetection() to obtain a score for every combination of period and phase between the passed min and max bounds. The score is an estimate of the maximum amplitude for all combinations of period and phase. More accurately, the score is the difference between the average of the periodic indices and the average of the mid-period indices. Returns the maximum periodic score and the period at which it was obtained.

    Declaration
    public static Tuple<double, int, int> Periodicity(double[] values, int minPeriod, int maxPeriod)
    Parameters
    Type Name Description
    Double[] values
    Int32 minPeriod
    Int32 maxPeriod
    Returns
    Type Description
    Tuple<Double, Int32, Int32>
    | Improve this Doc View Source

    Periodicity_MeanAndSD(Double[])

    Declaration
    public static Tuple<double, double, int> Periodicity_MeanAndSD(double[] values)
    Parameters
    Type Name Description
    Double[] values
    Returns
    Type Description
    Tuple<Double, Double, Int32>
    | Improve this Doc View Source

    PeriodicityAndPhaseDetection(Double[], Int32, Int32)

    returns the amplitude of an oscillation in an array having the given period.

    Declaration
    public static Tuple<double, int> PeriodicityAndPhaseDetection(double[] values, int period, int phase)
    Parameters
    Type Name Description
    Double[] values
    Int32 period
    Int32 phase
    Returns
    Type Description
    Tuple<Double, Int32>
    | Improve this Doc View Source

    PeriodicityDetection(Double[], Int32, Int32)

    Returns for each position in an array a periodicity score. That score is the maximum obtained for a range of periods over three cycles. This allowes the periodicity to change over the array and still return the maximum periodicity score.

    Declaration
    public static double[] PeriodicityDetection(double[] values, int minPeriod, int maxPeriod)
    Parameters
    Type Name Description
    Double[] values
    Int32 minPeriod
    Int32 maxPeriod
    Returns
    Type Description
    Double[]
    | Improve this Doc View Source

    PowerOf2Exponent(Int32)

    Declaration
    public static int PowerOf2Exponent(int number)
    Parameters
    Type Name Description
    Int32 number
    Returns
    Type Description
    Int32
    | Improve this Doc View Source

    RelativeEntropy(Double[])

    Declaration
    public static double RelativeEntropy(double[] distr)
    Parameters
    Type Name Description
    Double[] distr
    Returns
    Type Description
    Double
    | Improve this Doc View Source

    RelativeEntropy(Double[], Double[])

    Declaration
    public static double RelativeEntropy(double[] dist, double[] refDist)
    Parameters
    Type Name Description
    Double[] dist
    Double[] refDist
    Returns
    Type Description
    Double
    | Improve this Doc View Source

    RemoveNullElementsFromList(List<Double[]>)

    Declaration
    public static List<double[]> RemoveNullElementsFromList(List<double[]> list)
    Parameters
    Type Name Description
    List<Double[]> list
    Returns
    Type Description
    List<Double[]>
    | Improve this Doc View Source

    reverseArray(Double[])

    Declaration
    public static double[] reverseArray(double[] V)
    Parameters
    Type Name Description
    Double[] V
    Returns
    Type Description
    Double[]
    | Improve this Doc View Source

    reverseArray(Int32[])

    Declaration
    public static int[] reverseArray(int[] V)
    Parameters
    Type Name Description
    Int32[] V
    Returns
    Type Description
    Int32[]
    | Improve this Doc View Source

    roundDouble(Double, Int32)

    Declaration
    public static double roundDouble(double d, int places)
    Parameters
    Type Name Description
    Double d
    Int32 places
    Returns
    Type Description
    Double
    | Improve this Doc View Source

    SampleArrayRandomlyWithoutReplacementUsingProbabilityDistribution(Double[], Int32, Int32)

    Declaration
    public static int[] SampleArrayRandomlyWithoutReplacementUsingProbabilityDistribution(double[] distribution, int sampleCount, int seed)
    Parameters
    Type Name Description
    Double[] distribution
    Int32 sampleCount
    Int32 seed
    Returns
    Type Description
    Int32[]
    | Improve this Doc View Source

    ScaleArray(Double[], Int32)

    Lengthens or shortens an array of values with appropriate scaling. However this method does NOT attempt to interpolate estimated values.

    Declaration
    public static double[] ScaleArray(double[] v, int newLength)
    Parameters
    Type Name Description
    Double[] v

    the array or vector of values to be scaled.

    Int32 newLength

    the lehgth of the new scaled array.

    Returns
    Type Description
    Double[]

    a scaled array.

    | Improve this Doc View Source

    ScaleMatrix(Double[,], Int32, Int32)

    Declaration
    public static double[, ] ScaleMatrix(double[, ] matrix, int newRowCount, int newColCount)
    Parameters
    Type Name Description
    Double[,] matrix
    Int32 newRowCount
    Int32 newColCount
    Returns
    Type Description
    Double[,]
    | Improve this Doc View Source

    SegmentArrayOnThreshold(Double[], Double)

    returns a list of acoustic events defined by start, end and intensity score.

    Declaration
    public static List<double[]> SegmentArrayOnThreshold(double[] values, double threshold)
    Parameters
    Type Name Description
    Double[] values
    Double threshold
    Returns
    Type Description
    List<Double[]>

    List of double[] containing three values.

    | Improve this Doc View Source

    SetColumn(Double[,], Int32, Double[])

    Declaration
    public static void SetColumn(double[, ] m, int colID, double[] array)
    Parameters
    Type Name Description
    Double[,] m
    Int32 colID
    Double[] array
    | Improve this Doc View Source

    SetColumnZero(Byte[,], Int32)

    set all values in the passed column to zero.

    Declaration
    public static void SetColumnZero(byte[, ] m, int colID)
    Parameters
    Type Name Description
    Byte[,] m
    Int32 colID
    | Improve this Doc View Source

    SortArray(List<Int32>)

    sorts a list of integers. returns both the sorted array (Item2) and the array indices in rank order (Item1).

    Declaration
    public static Tuple<int[], int[]> SortArray(List<int> array)
    Parameters
    Type Name Description
    List<Int32> array
    Returns
    Type Description
    Tuple<Int32[], Int32[]>
    | Improve this Doc View Source

    SortArray(Double[])

    sorts an array of doubles in DESCENDING order i.e. max first. returns both the sorted array (Item2) and the array indices in rank order (Item1).

    Declaration
    public static Tuple<int[], double[]> SortArray(double[] array)
    Parameters
    Type Name Description
    Double[] array
    Returns
    Type Description
    Tuple<Int32[], Double[]>
    | Improve this Doc View Source

    SortArray(Int32[])

    Declaration
    public static Tuple<int[], int[]> SortArray(int[] a)
    Parameters
    Type Name Description
    Int32[] a
    Returns
    Type Description
    Tuple<Int32[], Int32[]>
    | Improve this Doc View Source

    SortArrayInAscendingOrder(Double[])

    sorts an array of doubles in ASCENDING order. Returns both the sorted array (Item2) and the original array indices in sort order (Item1) this is a totally crude sort algorithm but I could not find a MathsNet sort that also returned the sorted indices.

    Declaration
    public static Tuple<int[], double[]> SortArrayInAscendingOrder(double[] array)
    Parameters
    Type Name Description
    Double[] array
    Returns
    Type Description
    Tuple<Int32[], Double[]>
    | Improve this Doc View Source

    SquareRootOfValues(Double[])

    Declaration
    public static double[] SquareRootOfValues(double[] data)
    Parameters
    Type Name Description
    Double[] data
    Returns
    Type Description
    Double[]
    | Improve this Doc View Source

    SquareValues(Double[])

    Declaration
    public static double[] SquareValues(double[] data)
    Parameters
    Type Name Description
    Double[] data
    Returns
    Type Description
    Double[]
    | Improve this Doc View Source

    Subarray(Double[], Int32, Int32)

    Declaration
    public static double[] Subarray(double[] A, int start, int length)
    Parameters
    Type Name Description
    Double[] A
    Int32 start
    Int32 length

    the length of the subarray to be returned.

    Returns
    Type Description
    Double[]
    | Improve this Doc View Source

    Subarray(Int32[], Int32, Int32)

    Declaration
    public static int[] Subarray(int[] A, int start, int length)
    Parameters
    Type Name Description
    Int32[] A
    Int32 start
    Int32 length
    Returns
    Type Description
    Int32[]
    | Improve this Doc View Source

    Subarray<T>(T[], Int32, Int32)

    Returns a subarray of the passed array of any type.

    Declaration
    public static T[] Subarray<T>(T[] array, int start, int length)
    Parameters
    Type Name Description
    T[] array

    an array of any type.

    Int32 start

    the first element of the subarray.

    Int32 length

    number of elements in subarray.

    Returns
    Type Description
    T[]
    Type Parameters
    Name Description
    T
    | Improve this Doc View Source

    Submatrix(Double[,], Int32, Int32, Int32, Int32)

    Returns the submatrix of passed matrix. Assume that RowTop < RowBottom, && ColumnLeft < ColumnRight . Row, column indices start at 0.

    Declaration
    public static double[, ] Submatrix(double[, ] M, int r1, int c1, int r2, int c2)
    Parameters
    Type Name Description
    Double[,] M
    Int32 r1
    Int32 c1
    Int32 r2
    Int32 c2
    Returns
    Type Description
    Double[,]
    | Improve this Doc View Source

    SubtractMatrices(Double[,], Double[,])

    Subtract matrix m2 from matrix m1.

    Declaration
    public static double[, ] SubtractMatrices(double[, ] m1, double[, ] m2)
    Parameters
    Type Name Description
    Double[,] m1
    Double[,] m2
    Returns
    Type Description
    Double[,]
    | Improve this Doc View Source

    SubtractMean(Double[])

    subtracts the mean from each value of an array.

    Declaration
    public static double[] SubtractMean(double[] v)
    Parameters
    Type Name Description
    Double[] v
    Returns
    Type Description
    Double[]
    | Improve this Doc View Source

    SubtractValue(Double[], Double)

    subtracts the value from each value of an array.

    Declaration
    public static double[] SubtractValue(double[] v, double value)
    Parameters
    Type Name Description
    Double[] v
    Double value
    Returns
    Type Description
    Double[]
    | Improve this Doc View Source

    SubtractValueAndTruncateToZero(Double[], Double)

    subtracts the value from each value of an array If below zero, truncate to zero.

    Declaration
    public static double[] SubtractValueAndTruncateToZero(double[] v, double value)
    Parameters
    Type Name Description
    Double[] v
    Double value
    Returns
    Type Description
    Double[]
    | Improve this Doc View Source

    SubtractVectors(Double[], Double[])

    Subtract vector v2 from vector v1.

    Declaration
    public static double[] SubtractVectors(double[] v1, double[] v2)
    Parameters
    Type Name Description
    Double[] v1
    Double[] v2
    Returns
    Type Description
    Double[]
    | Improve this Doc View Source

    Sum(Double[])

    Declaration
    public static double Sum(double[] data)
    Parameters
    Type Name Description
    Double[] data
    Returns
    Type Description
    Double
    | Improve this Doc View Source

    Sum(Int32[])

    Declaration
    public static int Sum(int[] data)
    Parameters
    Type Name Description
    Int32[] data
    Returns
    Type Description
    Int32
    | Improve this Doc View Source

    SumColumn(Int32[,], Int32)

    Declaration
    public static int SumColumn(int[, ] m, int colID)
    Parameters
    Type Name Description
    Int32[,] m
    Int32 colID
    Returns
    Type Description
    Int32
    | Improve this Doc View Source

    SumMinusDifference(Double[], Double[])

    Declaration
    public static double[] SumMinusDifference(double[] lowerArray, double[] upperArray)
    Parameters
    Type Name Description
    Double[] lowerArray
    Double[] upperArray
    Returns
    Type Description
    Double[]
    | Improve this Doc View Source

    TEST_FilterMovingAverage()

    Declaration
    public static void TEST_FilterMovingAverage()
    | Improve this Doc View Source

    Threshold(Double[,], Double)

    Returns binary matrix with values set = 1 if they exceed the threshold else set = 0.

    Declaration
    public static double[, ] Threshold(double[, ] matrix, double threshold)
    Parameters
    Type Name Description
    Double[,] matrix
    Double threshold
    Returns
    Type Description
    Double[,]
    | Improve this Doc View Source

    Time_ConvertDateString2DateTime(String)

    Assume string has format YYYYMMDD_hhmmss*.

    Declaration
    public static DateTime Time_ConvertDateString2DateTime(string dateString)
    Parameters
    Type Name Description
    String dateString
    Returns
    Type Description
    DateTime
    | Improve this Doc View Source

    Time_ConvertSecs2Mins(Double)

    Declaration
    public static string Time_ConvertSecs2Mins(double seconds)
    Parameters
    Type Name Description
    Double seconds
    Returns
    Type Description
    String
    | Improve this Doc View Source

    TwoOfThree(Double[,], Double[,], Double[,])

    Declaration
    public static double[, ] TwoOfThree(double[, ] m1, double[, ] m2, double[, ] m3)
    Parameters
    Type Name Description
    Double[,] m1
    Double[,] m2
    Double[,] m3
    Returns
    Type Description
    Double[,]
    | Improve this Doc View Source

    TypeOfArray(String[])

    Declaration
    public static Type TypeOfArray(string[] array)
    Parameters
    Type Name Description
    String[] array
    Returns
    Type Description
    Type
    | Improve this Doc View Source

    ValueInList(Int32, Int32[])

    Declaration
    public static bool ValueInList(int value, int[] data)
    Parameters
    Type Name Description
    Int32 value
    Int32[] data
    Returns
    Type Description
    Boolean
    | Improve this Doc View Source

    Vector_NormLength(Double[])

    Declaration
    public static double[] Vector_NormLength(double[] v)
    Parameters
    Type Name Description
    Double[] v
    Returns
    Type Description
    Double[]
    | Improve this Doc View Source

    Vector_NormRange(Double[])

    returns the vector normalised for min and max values.

    Declaration
    public static double[] Vector_NormRange(double[] v)
    Parameters
    Type Name Description
    Double[] v
    Returns
    Type Description
    Double[]
    | Improve this Doc View Source

    Vector2Zscores(Double[])

    shift values by their mean.

    Declaration
    public static double[] Vector2Zscores(double[] V)
    Parameters
    Type Name Description
    Double[] V
    Returns
    Type Description
    Double[]
    | Improve this Doc View Source

    VectorDoubleLengthByAverageInterpolation(Double[])

    reduces length of the passed vector by combining consecutive values into an average.

    Declaration
    public static double[] VectorDoubleLengthByAverageInterpolation(double[] v)
    Parameters
    Type Name Description
    Double[] v

    the vector.

    Returns
    Type Description
    Double[]

    the reduced vector.

    | Improve this Doc View Source

    VectorEuclidianLength(Double[])

    returns the euclidian length of vector.

    Declaration
    public static double VectorEuclidianLength(double[] v)
    Parameters
    Type Name Description
    Double[] v
    Returns
    Type Description
    Double
    | Improve this Doc View Source

    VectorReduceLength(Double[], Int32)

    reduces length of the passed vector by combining consecutive values into an average.

    Declaration
    public static double[] VectorReduceLength(double[] v, int factor)
    Parameters
    Type Name Description
    Double[] v

    the vector.

    Int32 factor

    reduction factor.

    Returns
    Type Description
    Double[]

    the reduced vector.

    | Improve this Doc View Source

    WhichSideOfCentre(Double[], Double, Int32, Int32)

    Given an array of monotonically increasing or decreasing values and a reference value, determine whether the ref value lies above or below the index halfway between the passed lower and upper indices. This method is recursive. It determines the index of the array whose value is closest to the ref value.

    Declaration
    public static int WhichSideOfCentre(double[] array, double refValue, int lowerIndex, int upperIndex)
    Parameters
    Type Name Description
    Double[] array
    Double refValue
    Int32 lowerIndex
    Int32 upperIndex
    Returns
    Type Description
    Int32
    | Improve this Doc View Source

    writeArray(Boolean[])

    Declaration
    public static void writeArray(bool[] array)
    Parameters
    Type Name Description
    Boolean[] array
    | Improve this Doc View Source

    WriteArray(Double[])

    Declaration
    public static void WriteArray(double[] array)
    Parameters
    Type Name Description
    Double[] array
    | Improve this Doc View Source

    writeArray(Double[], String)

    Declaration
    public static void writeArray(double[] array, string format)
    Parameters
    Type Name Description
    Double[] array
    String format
    | Improve this Doc View Source

    writeArray(Int32[])

    Declaration
    public static void writeArray(int[] array)
    Parameters
    Type Name Description
    Int32[] array
    | Improve this Doc View Source

    WriteArray(String[])

    Declaration
    public static void WriteArray(string[] array)
    Parameters
    Type Name Description
    String[] array
    | Improve this Doc View Source

    WriteArrayAsCsvLine(Double[], String)

    The format string should be as follows: "0.00" for two decimal places. For more detail on custom numeric format string, see https://docs.microsoft.com/en-us/dotnet/standard/base-types/custom-numeric-format-strings.

    Declaration
    public static string WriteArrayAsCsvLine(double[] array, string format)
    Parameters
    Type Name Description
    Double[] array

    an array of double.

    String format

    format string.

    Returns
    Type Description
    String
    | Improve this Doc View Source

    WriteArrayInLine(Double[], String)

    Declaration
    public static void WriteArrayInLine(double[] array, string format)
    Parameters
    Type Name Description
    Double[] array
    String format
    | Improve this Doc View Source

    WriteArrayList(List<String>)

    Declaration
    public static void WriteArrayList(List<string> list)
    Parameters
    Type Name Description
    List<String> list
    | Improve this Doc View Source

    writeBarGraph(Double[])

    this method written to display silence/noise profile of wav file. May not fit general use. Must be shifted and scaled because all values are neg.

    Declaration
    public static void writeBarGraph(double[] data)
    Parameters
    Type Name Description
    Double[] data
    | Improve this Doc View Source

    writeBarGraph(Int32[])

    Declaration
    public static void writeBarGraph(int[] data)
    Parameters
    Type Name Description
    Int32[] data
    | Improve this Doc View Source

    writeMatrix(Double[,])

    Declaration
    public static void writeMatrix(double[, ] matrix)
    Parameters
    Type Name Description
    Double[,] matrix
    | Improve this Doc View Source

    writeMatrix(Double[,], String)

    Declaration
    public static void writeMatrix(double[, ] matrix, string format)
    Parameters
    Type Name Description
    Double[,] matrix
    String format
    | Improve this Doc View Source

    WriteMatrix(Int32[,])

    Declaration
    public static void WriteMatrix(int[, ] matrix)
    Parameters
    Type Name Description
    Int32[,] matrix
    | Improve this Doc View Source

    writeMatrix2File(Double[,], String)

    Declaration
    public static void writeMatrix2File(double[, ] matrix, string fPath)
    Parameters
    Type Name Description
    Double[,] matrix
    String fPath
    | Improve this Doc View Source

    WriteMinMaxOfArray(Double[])

    Declaration
    public static void WriteMinMaxOfArray(double[] data)
    Parameters
    Type Name Description
    Double[] data
    | Improve this Doc View Source

    WriteMinMaxOfArray(String, Double[])

    Declaration
    public static void WriteMinMaxOfArray(string arrayname, double[] data)
    Parameters
    Type Name Description
    String arrayname
    Double[] data
    | Improve this Doc View Source

    WriteMinMaxOfFeatures(Double[,])

    Declaration
    public static void WriteMinMaxOfFeatures(double[, ] m)
    Parameters
    Type Name Description
    Double[,] m
    | Improve this Doc View Source

    ZeroCrossings(Double[])

    counts the zero crossings in a signal.

    Declaration
    public static int ZeroCrossings(double[] signal)
    Parameters
    Type Name Description
    Double[] signal
    Returns
    Type Description
    Int32
    | Improve this Doc View Source

    ZeroDippings(Double[])

    counts the times signal drops from above to below zero.

    Declaration
    public static int ZeroDippings(double[] signal)
    Parameters
    Type Name Description
    Double[] signal
    Returns
    Type Description
    Int32
    | Improve this Doc View Source

    ZeroRisings(Double[])

    counts the times signal rises from below to above zero.

    Declaration
    public static int ZeroRisings(double[] signal)
    Parameters
    Type Name Description
    Double[] signal
    Returns
    Type Description
    Int32

    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
    • Fields
      • ln2
      • MonthNames
    • Methods
      • AddMatrices(Double[,], Double[,])
      • AddVectors(Double[], Double[])
      • AntiLog(Double, Double)
      • AntiLogBase10(Double)
      • areaUnderCurve(Double, Double, Double, Double)
      • Array2Matrix(Byte[], Int32, Int32)
      • Array2String(Double[])
      • Array2String(Int32[])
      • Array2String(String[])
      • Bool2Binary(Boolean[])
      • BoundArray(Double[], Double, Double)
      • BoundMatrix(Double[,], Double, Double)
      • Clip(Double[,], Double, Double)
      • combinatorial(Int32, Int32)
      • ConcatenateVectors(List<Double[]>)
      • ConcatenateVectors(Double[][])
      • ConvertJaggedToMatrix(Double[][])
      • ConvertList2Matrix(List<Double[]>)
      • ConvertProbabilityDistribution2CummulativeProbabilites(Double[])
      • ConvertStringArrayToDoubles(String[])
      • CosineSimilarity(Double[], Double[])
      • CosineSimilarity(Double[,], Double[,])
      • CountPeaks(Double[], out Int32, out Double)
      • CountPositives(Double[])
      • CountPositives(Int32[])
      • CountTrues(Boolean[])
      • Data2Bins(Int32[], Int32, Int32, Int32)
      • DiffFromMean(Double[])
      • DiffFromMean(Double[,])
      • DotProduct(Double[], Double[])
      • DotProduct(Double[,], Double[,])
      • Entropy(Double[])
      • Entropy(Double[,])
      • EntropyNormalised(Double[])
      • EntropyNormalised(Int32[])
      • EuclideanDistance(Byte[], Byte[])
      • EuclideanDistance(Double[], Double[])
      • EuclideanDistance(Double[,], Double[,])
      • filterMovingAverage(Double[], Int32)
      • filterMovingAverage(Int32[], Int32)
      • filterMovingAverage(Single[], Int32)
      • filterMovingAverageEven(Double[], Int32)
      • filterMovingAverageOdd(Double[], Int32)
      • filterMovingAverageOLD(Double[], Int32)
      • GapLengths(Boolean[])
      • GapLengths(Double[])
      • GetArrayTypes(List<String[]>)
      • GetByteDistribution(Byte[,])
      • GetColumn(Double[,], Int32)
      • GetColumnsAverages(Double[,])
      • GetColumnSum(Int32[,], Int32)
      • GetColumnSums(Byte[,])
      • GetEventLengths(Boolean[])
      • GetHistogramOfDistancesBetweenEveryPairOfPeaks(Double[], Double)
      • GetInitialisedArray(Int32, Double)
      • GetMaxIndex(List<Int32>)
      • GetMaxIndex(Double[])
      • getMaxIndex(Double[], out Int32)
      • GetMaxIndex(Int32[])
      • getMaxIndex(Int32[], out Int32)
      • GetMedian(Double[])
      • GetMinIndex(Double[])
      • GetModeAndOneTailedStandardDeviation(Double[], out Int32[], out Double, out Double, out Int32, out Double, out Double)
      • GetModeAndOneTailedStandardDeviation(Int32[], out Int32, out Int32)
      • GetNthLargestValue(Double[], Int32)
      • GetNthSmallestValue(Double[], Int32)
      • GetOrderedPeakLocations(Double[], Int32)
      • GetPeaks(Double[])
      • GetPeaks(Double[], Double)
      • GetPeakValues(Double[])
      • GetRankedIndicesInAscendingOrder(Double[])
      • GetRankedIndicesInDecendingOrder(Double[])
      • GetRow(Byte[,], Int32)
      • GetRow(Double[,], Int32)
      • GetRowSum(Byte[,], Int32)
      • GetRowSum(Double[,], Int32)
      • GetRowSum(Int32[,], Int32)
      • GetRowSums(Byte[,])
      • GetTroughs(Double[])
      • GetWeightedCombinationOfColumns(List<Double[]>, Double[])
      • HammingDistance(Double[], Double[])
      • IsArrayOfBoolean(String[])
      • IsArrayOfDouble(String[])
      • IsArrayOfInt(String[])
      • IsPowerOfTwo(UInt64)
      • Log10Values(Double[], Double)
      • LogicalORofTwoVectors(Byte[], Byte[])
      • ManhattanDistance(Double[], Double[])
      • Matrix2Array(Byte[,])
      • Matrix2Array(Double[,,])
      • Matrix2Array(Double[,])
      • Matrix2Array(Int32[,,])
      • Matrix2Array(Int32[,])
      • Matrix2Binary(Double[,], Double)
      • MatrixRotate90Anticlockwise(Double[,])
      • MatrixRotate90Clockwise(Char[,])
      • MatrixRotate90Clockwise(Double[,])
      • MatrixTranspose(Byte[,])
      • MatrixTranspose(Char[,])
      • MatrixTranspose(Double[,])
      • MinMax(Byte[], out Byte, out Byte)
      • MinMax(Byte[,], out Byte, out Byte)
      • MinMax(Double[], out Double, out Double)
      • MinMax(Double[], out Int32, out Int32, out Double, out Double)
      • MinMax(Double[,], out Double, out Double)
      • MinMax(Int32[], out Int32, out Int32)
      • MinMaxAv(Double[], out Double, out Double, out Double)
      • ModalValue(Double[], out Double, out Double)
      • MutualInformation(Int32[,])
      • normalise(Double[])
      • Normalise(Double[], Double, Double)
      • Normalise(Double[], Double, out Double[], out Double)
      • normalise(Double[,])
      • Normalise(Double[,], Double, Double)
      • normalise(Int32[])
      • normalise_zeroEdge(Double[,], Double, Double)
      • Normalise2Probabilites(Double[])
      • normalise2UnitLength(Double[])
      • normalise2UnitLength(Int32[])
      • NormaliseArea(Double[])
      • NormaliseArea(Int32[])
      • NormaliseByScalingMaxValueToOne(Double[])
      • NormaliseInZeroOne(Double, Double, Double)
      • NormaliseInZeroOne(Double[], Double, Double)
      • NormaliseInZeroOne(Double[,], Double, Double)
      • NormaliseReverseInZeroOne(Double[,], Double, Double)
      • NormaliseValue(Double, Double, Double)
      • NormaliseValues(Int32[], Int32, Int32)
      • Order(Double[], Double[])
      • padString_post(String, Int32)
      • padString_pre(String, Int32)
      • PatternSimilarity(Double[], Double[])
      • PeakLocations(Double[], Double)
      • PeakLocations(Double[], Double, out Int32, out Double[])
      • Peaks_CropLowAmplitude(Double[], Double)
      • Peaks_CropToFirstAndLast(Double[], Double)
      • PercentileCutoffs(Double[,], Double, Double, out Double, out Double)
      • Periodicity(Double[], Int32, Int32)
      • Periodicity_MeanAndSD(Double[])
      • PeriodicityAndPhaseDetection(Double[], Int32, Int32)
      • PeriodicityDetection(Double[], Int32, Int32)
      • PowerOf2Exponent(Int32)
      • RelativeEntropy(Double[])
      • RelativeEntropy(Double[], Double[])
      • RemoveNullElementsFromList(List<Double[]>)
      • reverseArray(Double[])
      • reverseArray(Int32[])
      • roundDouble(Double, Int32)
      • SampleArrayRandomlyWithoutReplacementUsingProbabilityDistribution(Double[], Int32, Int32)
      • ScaleArray(Double[], Int32)
      • ScaleMatrix(Double[,], Int32, Int32)
      • SegmentArrayOnThreshold(Double[], Double)
      • SetColumn(Double[,], Int32, Double[])
      • SetColumnZero(Byte[,], Int32)
      • SortArray(List<Int32>)
      • SortArray(Double[])
      • SortArray(Int32[])
      • SortArrayInAscendingOrder(Double[])
      • SquareRootOfValues(Double[])
      • SquareValues(Double[])
      • Subarray(Double[], Int32, Int32)
      • Subarray(Int32[], Int32, Int32)
      • Subarray<T>(T[], Int32, Int32)
      • Submatrix(Double[,], Int32, Int32, Int32, Int32)
      • SubtractMatrices(Double[,], Double[,])
      • SubtractMean(Double[])
      • SubtractValue(Double[], Double)
      • SubtractValueAndTruncateToZero(Double[], Double)
      • SubtractVectors(Double[], Double[])
      • Sum(Double[])
      • Sum(Int32[])
      • SumColumn(Int32[,], Int32)
      • SumMinusDifference(Double[], Double[])
      • TEST_FilterMovingAverage()
      • Threshold(Double[,], Double)
      • Time_ConvertDateString2DateTime(String)
      • Time_ConvertSecs2Mins(Double)
      • TwoOfThree(Double[,], Double[,], Double[,])
      • TypeOfArray(String[])
      • ValueInList(Int32, Int32[])
      • Vector_NormLength(Double[])
      • Vector_NormRange(Double[])
      • Vector2Zscores(Double[])
      • VectorDoubleLengthByAverageInterpolation(Double[])
      • VectorEuclidianLength(Double[])
      • VectorReduceLength(Double[], Int32)
      • WhichSideOfCentre(Double[], Double, Int32, Int32)
      • writeArray(Boolean[])
      • WriteArray(Double[])
      • writeArray(Double[], String)
      • writeArray(Int32[])
      • WriteArray(String[])
      • WriteArrayAsCsvLine(Double[], String)
      • WriteArrayInLine(Double[], String)
      • WriteArrayList(List<String>)
      • writeBarGraph(Double[])
      • writeBarGraph(Int32[])
      • writeMatrix(Double[,])
      • writeMatrix(Double[,], String)
      • WriteMatrix(Int32[,])
      • writeMatrix2File(Double[,], String)
      • WriteMinMaxOfArray(Double[])
      • WriteMinMaxOfArray(String, Double[])
      • WriteMinMaxOfFeatures(Double[,])
      • ZeroCrossings(Double[])
      • ZeroDippings(Double[])
      • ZeroRisings(Double[])
    • Extension Methods
    Generated by DocFX AP docs version: 21.7.0.4-master-e26127a50d7bd7472d47288f10e61014fb981f7f-DIRTY-CI:144 Back to top