• 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 SpectrogramTools

    Inheritance
    Object
    SpectrogramTools
    Inherited Members
    Object.Equals(Object)
    Object.Equals(Object, Object)
    Object.GetHashCode()
    Object.GetType()
    Object.MemberwiseClone()
    Object.ReferenceEquals(Object, Object)
    Object.ToString()
    Namespace: AudioAnalysisTools.StandardSpectrograms
    Assembly: AudioAnalysisTools.dll
    Syntax
    public static class SpectrogramTools

    Methods

    | Improve this Doc View Source

    AverageAnArrayOfDecibelValues(Double[])

    Here is some test data for this method: array = new[] { 96.0, 100.0, 90.0, 97.0 }; The return value should = 96.988 dB First need to calculate the original value i.e. exponential or antilog. See also DataTools.AntiLogBase10(double value).

    Declaration
    public static double AverageAnArrayOfDecibelValues(double[] array)
    Parameters
    Type Name Description
    Double[] array

    an array of decibel values.

    Returns
    Type Description
    Double

    a decibel value.

    | Improve this Doc View Source

    CalculateAvgDecibelSpectrumFromDecibelSpectrogram(Double[,])

    Use this method to average a decibel spectrogram.

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

    CalculateAvgSpectrumAndVarianceSpectrumFromAmplitudeSpectrogram(Double[,])

    Returns AVERAGE POWER SPECTRUM (PSD) and VARIANCE OF POWER SPECTRUM. Have been passed the amplitude spectrum but square amplitude values to get power or energy.

    This method assumes that the passed amplitude spectrogram has been prepared according to method of P.D. Welch. It is the standard method used now to calculate a PSD. Welch's method splits time series into overlapping segments and windows them. It is the windowing that makes Welche's method different. Normally overlap windows because windows decay at edges and therefore loss of info. Can now do FFT. Does not need to be FFT, but if so then window must be power of 2. Square the FFT coefficients >>>> energy. Then take average in each frquncy bin. Averaging reduces the variance. Welch's method is an improvement on the standard periodogram spectrum estimating method and on Bartlett's method, in that it reduces noise in the estimated power spectra in exchange for reducing the frequency resolution. The end result is an array of power measurements vs. frequency "bin".

    As well as calculating the av power spectrum, this method also returns a variance spectrum and a spectrum of the Coeff of Variation = var/mean.

    Declaration
    public static Tuple<double[], double[], double[]> CalculateAvgSpectrumAndVarianceSpectrumFromAmplitudeSpectrogram(double[, ] amplitudeSpectrogram)
    Parameters
    Type Name Description
    Double[,] amplitudeSpectrogram

    this is an amplitude spectrum. Must square values to get power.

    Returns
    Type Description
    Tuple<Double[], Double[], Double[]>

    three spectral indices.

    | Improve this Doc View Source

    CalculateAvgSpectrumFromEnergySpectrogram(Double[,])

    NOTE: This method should not be used to average a decibel spectrogram. Use only for power spectrograms.

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

    CalculateNdsi(Double[], Int32, Int32, Int32, Int32)

    Calculates Stuart Gage's NDSI acoustic index from the Power Spectrum derived from a spectrogram. This method assumes P.D. Welch's method has been used to calculate the PSD. See method above: CalculateAvgSpectrumAndVarianceSpectrumFromAmplitudeSpectrogram().

    Declaration
    public static double CalculateNdsi(double[] psd, int samplerate, int lowBound, int midBound, int topBound)
    Parameters
    Type Name Description
    Double[] psd

    power spectral density.

    Int32 samplerate

    original sample rate of the recording. Only used to get nyquist.

    Int32 lowBound

    low ndsi bound.

    Int32 midBound

    mid ndsi bound.

    Int32 topBound

    top ndsi bound.

    Returns
    Type Description
    Double

    ndsi.

    | Improve this Doc View Source

    CreateFalseColourAmplitudeSpectrogram(Double[,], Double[,], Byte[,])

    Another experimental method to colour render spectrograms, this time amplitude spectrograms.

    Declaration
    public static Image<Rgb24> CreateFalseColourAmplitudeSpectrogram(double[, ] spectrogramData, double[, ] nrSpectrogramData, byte[, ] hits)
    Parameters
    Type Name Description
    Double[,] spectrogramData
    Double[,] nrSpectrogramData
    Byte[,] hits
    Returns
    Type Description
    SixLabors.ImageSharp.Image<SixLabors.ImageSharp.PixelFormats.Rgb24>
    | Improve this Doc View Source

    CreateFalseColourDecibelSpectrogram(Double[,], Double[,], Byte[,])

    TODO: This method needs a unit test. This is experimental method to explore colour rendering of standard spectrograms Used to convert a standard decibel spectrogram into a colour version using a colour rendering for three separate properties.

    Declaration
    public static Image<Rgb24> CreateFalseColourDecibelSpectrogram(double[, ] dbSpectrogramData, double[, ] nrSpectrogramData, byte[, ] hits)
    Parameters
    Type Name Description
    Double[,] dbSpectrogramData

    the raw decibel spectrogram data - assigned to red channel.

    Double[,] nrSpectrogramData

    the noise reduced decibel spectrogram data - assigned to green channel.

    Byte[,] hits

    assigned to ridge colours.

    Returns
    Type Description
    SixLabors.ImageSharp.Image<SixLabors.ImageSharp.PixelFormats.Rgb24>

    coloured-rendered spectrogram as image.

    | Improve this Doc View Source

    CreateFalseColourDecibelSpectrogramForZooming(Double[,], Double[,], Byte[,])

    Creates a false-coloured spectrogram from spectral frame data. That is, uses normal spectrogram data but draws the raw data in red and then superimposes the noise reduced decibel data Also uses the spectral "hits" data for highlighting the spectrogram.

    IMPORTANT WARNING!!!! THIS METHOD ASSUMES THAT BOTH SPECTRAL MATRICES HAVE BEEN NORMALISED IN [0,1].

    Declaration
    public static Image<Rgb24> CreateFalseColourDecibelSpectrogramForZooming(double[, ] dbSpectrogramNorm, double[, ] nrSpectrogramNorm, byte[, ] hits)
    Parameters
    Type Name Description
    Double[,] dbSpectrogramNorm

    the raw decibel spectrogram data - assigned to red channel.

    Double[,] nrSpectrogramNorm

    the noise reduced decibel spectrogram data - assigned to green channel.

    Byte[,] hits

    assigned to ridge colours.

    Returns
    Type Description
    SixLabors.ImageSharp.Image<SixLabors.ImageSharp.PixelFormats.Rgb24>

    coloured-rendered spectrogram as image.

    | Improve this Doc View Source

    DrawGridLinesOnImage(Image<Rgb24>, TimeSpan, TimeSpan, TimeSpan, FrequencyScale)

    Only calls method to draw frequency lines but may in future want to add the times scale.

    Declaration
    public static void DrawGridLinesOnImage(Image<Rgb24> bmp, TimeSpan startOffset, TimeSpan fullDuration, TimeSpan xAxisTicInterval, FrequencyScale freqScale)
    Parameters
    Type Name Description
    SixLabors.ImageSharp.Image<SixLabors.ImageSharp.PixelFormats.Rgb24> bmp

    the spectrogram image.

    TimeSpan startOffset

    start Offset.

    TimeSpan fullDuration

    full Duration.

    TimeSpan xAxisTicInterval

    xAxis Tic Interval.

    FrequencyScale freqScale

    freq Scale.

    | Improve this Doc View Source

    DrawTimeLinesOnImage(Image<Rgb24>, TimeSpan, TimeSpan, TimeSpan)

    Declaration
    public static void DrawTimeLinesOnImage(Image<Rgb24> bmp, TimeSpan startOffset, TimeSpan fullDuration, TimeSpan xAxisTicInterval)
    Parameters
    Type Name Description
    SixLabors.ImageSharp.Image<SixLabors.ImageSharp.PixelFormats.Rgb24> bmp
    TimeSpan startOffset
    TimeSpan fullDuration
    TimeSpan xAxisTicInterval
    | Improve this Doc View Source

    ExtractFreqSubband(Double[,], Int32, Int32, Boolean, Int32, Double)

    Declaration
    public static double[, ] ExtractFreqSubband(double[, ] m, int minHz, int maxHz, bool doMelscale, int binCount, double binWidth)
    Parameters
    Type Name Description
    Double[,] m
    Int32 minHz
    Int32 maxHz
    Boolean doMelscale
    Int32 binCount
    Double binWidth
    Returns
    Type Description
    Double[,]
    | Improve this Doc View Source

    ExtractModalNoiseSubband(Double[], Int32, Int32, Boolean, Int32, Double)

    Declaration
    public static double[] ExtractModalNoiseSubband(double[] modalNoise, int minHz, int maxHz, bool doMelScale, int nyquist, double binWidth)
    Parameters
    Type Name Description
    Double[] modalNoise
    Int32 minHz
    Int32 maxHz
    Boolean doMelScale
    Int32 nyquist
    Double binWidth
    Returns
    Type Description
    Double[]
    | Improve this Doc View Source

    FilterbankIntegral(Double[], Int32, Int32, Int32)

    Implements the integral for a single filter in a filterbank.

    Declaration
    public static double FilterbankIntegral(double[] spectrum, int lowIndex, int centreIndex, int highIndex)
    Parameters
    Type Name Description
    Double[] spectrum

    THe input (linear) spectrum.

    Int32 lowIndex

    The lower bound of the filter.

    Int32 centreIndex

    Centre index of the filter.

    Int32 highIndex

    Upper bound of the filter.

    Returns
    Type Description
    Double

    The integral of the filter.

    | Improve this Doc View Source

    GetImage(Double[,], Int32, Boolean)

    Declaration
    public static Image<Rgb24> GetImage(double[, ] data, int nyquist, bool DoMel)
    Parameters
    Type Name Description
    Double[,] data
    Int32 nyquist
    Boolean DoMel
    Returns
    Type Description
    SixLabors.ImageSharp.Image<SixLabors.ImageSharp.PixelFormats.Rgb24>
    | Improve this Doc View Source

    GetImageFullyAnnotated(Image<Rgb24>, String, Int32[,], TimeSpan)

    Declaration
    public static Image<Rgb24> GetImageFullyAnnotated(Image<Rgb24> image, string title, int[, ] gridLineLocations, TimeSpan duration)
    Parameters
    Type Name Description
    SixLabors.ImageSharp.Image<SixLabors.ImageSharp.PixelFormats.Rgb24> image
    String title
    Int32[,] gridLineLocations
    TimeSpan duration
    Returns
    Type Description
    SixLabors.ImageSharp.Image<SixLabors.ImageSharp.PixelFormats.Rgb24>
    | Improve this Doc View Source

    GetSonogramPlusCharts(BaseSonogram, List<AcousticEvent>, List<Plot>, Double[,], String)

    This method draws a spectrogram with other useful information attached.

    Declaration
    public static Image<Rgb24> GetSonogramPlusCharts(BaseSonogram sonogram, List<AcousticEvent> events, List<Plot> plots, double[, ] hits, string title)
    Parameters
    Type Name Description
    BaseSonogram sonogram

    of BaseSonogram class.

    List<AcousticEvent> events

    a list of acoustic events.

    List<Plot> plots

    a list of plots relevant to the spectrogram scores.

    Double[,] hits

    not often used - can be null.

    String title
    Returns
    Type Description
    SixLabors.ImageSharp.Image<SixLabors.ImageSharp.PixelFormats.Rgb24>
    | Improve this Doc View Source

    GetSonogramPlusCharts(BaseSonogram, List<EventCommon>, List<Plot>, Double[,], String)

    This method draws a spectrogram with other useful information attached.

    Declaration
    public static Image<Rgb24> GetSonogramPlusCharts(BaseSonogram sonogram, List<EventCommon> events, List<Plot> plots, double[, ] hits, string title)
    Parameters
    Type Name Description
    BaseSonogram sonogram

    of BaseSonogram class.

    List<EventCommon> events

    a list of acoustic events.

    List<Plot> plots

    a list of plots relevant to the spectrogram scores.

    Double[,] hits

    not often used - can be null.

    String title
    Returns
    Type Description
    SixLabors.ImageSharp.Image<SixLabors.ImageSharp.PixelFormats.Rgb24>
    | Improve this Doc View Source

    HistogramOfSpectralPeaks(Double[,])

    Returns a HISTORGRAM OF THE DISTRIBUTION of SPECTRAL maxima.

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

    NormaliseSpectrogramMatrix(Double[,], Double, Double, Double)

    Used to normalise a spectrogram in 0,1.

    Declaration
    public static double[, ] NormaliseSpectrogramMatrix(double[, ] matrix, double truncateMin, double truncateMax, double backgroundFilterCoeff)
    Parameters
    Type Name Description
    Double[,] matrix

    the spectrogram data.

    Double truncateMin

    set all values above to 1.0.

    Double truncateMax

    set all values below to zero.

    Double backgroundFilterCoeff

    used to de-emphisize the background.

    Returns
    Type Description
    Double[,]

    a normalised matrix of spectrogram data.

    | Improve this Doc View Source

    RescaleSpectrumUsingFilterbank(Int32[,], Double[])

    Converts a single linear frequency scale spectrum to a reduced linear or non-linear frequency scale spectrum. The scale conversion is defined in the transformMatrix variable. The transformMatrix defines a filter bank. Strictly speaking the input spectrum can be any vector of values but typically it should be linear spectrum.

    Declaration
    public static double[] RescaleSpectrumUsingFilterbank(int[, ] transformMatrix, double[] linearSpectrum)
    Parameters
    Type Name Description
    Int32[,] transformMatrix
    Double[] linearSpectrum
    Returns
    Type Description
    Double[]
    • Improve this Doc
    • View Source
    In This Article
    • Methods
      • AverageAnArrayOfDecibelValues(Double[])
      • CalculateAvgDecibelSpectrumFromDecibelSpectrogram(Double[,])
      • CalculateAvgSpectrumAndVarianceSpectrumFromAmplitudeSpectrogram(Double[,])
      • CalculateAvgSpectrumFromEnergySpectrogram(Double[,])
      • CalculateNdsi(Double[], Int32, Int32, Int32, Int32)
      • CreateFalseColourAmplitudeSpectrogram(Double[,], Double[,], Byte[,])
      • CreateFalseColourDecibelSpectrogram(Double[,], Double[,], Byte[,])
      • CreateFalseColourDecibelSpectrogramForZooming(Double[,], Double[,], Byte[,])
    • IMPORTANT WARNING!!!! THIS METHOD ASSUMES THAT BOTH SPECTRAL MATRICES HAVE BEEN NORMALISED IN [0,1].
      • DrawGridLinesOnImage(Image<Rgb24>, TimeSpan, TimeSpan, TimeSpan, FrequencyScale)
      • DrawTimeLinesOnImage(Image<Rgb24>, TimeSpan, TimeSpan, TimeSpan)
      • ExtractFreqSubband(Double[,], Int32, Int32, Boolean, Int32, Double)
      • ExtractModalNoiseSubband(Double[], Int32, Int32, Boolean, Int32, Double)
      • FilterbankIntegral(Double[], Int32, Int32, Int32)
      • GetImage(Double[,], Int32, Boolean)
      • GetImageFullyAnnotated(Image<Rgb24>, String, Int32[,], TimeSpan)
      • GetSonogramPlusCharts(BaseSonogram, List<AcousticEvent>, List<Plot>, Double[,], String)
      • GetSonogramPlusCharts(BaseSonogram, List<EventCommon>, List<Plot>, Double[,], String)
      • HistogramOfSpectralPeaks(Double[,])
      • NormaliseSpectrogramMatrix(Double[,], Double, Double, Double)
      • RescaleSpectrumUsingFilterbank(Int32[,], Double[])
    Generated by DocFX AP docs version: 21.7.0.4-master-e26127a50d7bd7472d47288f10e61014fb981f7f-DIRTY-CI:144 Back to top