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

    Inheritance
    Object
    MatrixTools
    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 static class MatrixTools

    Methods

    | Improve this Doc View Source

    AddBlankRows(Double[,], Int32)

    Add rows of nan to pad out a matrix.

    Declaration
    public static double[, ] AddBlankRows(double[, ] m1, int number)
    Parameters
    Type Name Description
    Double[,] m1
    Int32 number
    Returns
    Type Description
    Double[,]
    | 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

    AddMatricesWeightedSum(Double[,], Double, Double[,], Double)

    Adds two matrices using weighted sum. Typically expected that that w1 + w2 = 0 and both matrices are normalised.

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

    ArrayToMatrixByColumn(Double[], Int32, Int32)

    converts a vector to a matrix in the direction of column. For example, the "Matrix2Array" method in MatrixTools.cs builds the vector by concatenating the columns.

    Declaration
    public static double[, ] ArrayToMatrixByColumn(double[] vector, int columnSize, int rowSize)
    Parameters
    Type Name Description
    Double[] vector
    Int32 columnSize
    Int32 rowSize
    Returns
    Type Description
    Double[,]
    | Improve this Doc View Source

    ArrayToMatrixByRow(Double[], Int32, Int32)

    converts a vector to a matrix in the direction of row.

    Declaration
    public static double[, ] ArrayToMatrixByRow(double[] vector, int columnSize, int rowSize)
    Parameters
    Type Name Description
    Double[] vector
    Int32 columnSize
    Int32 rowSize
    Returns
    Type Description
    Double[,]
    | Improve this Doc View Source

    AverageValuesInTriangleAboveAndBelowNegativeDiagonal(Double[,], out Double, out Double)

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

    AverageValuesInTriangleAboveAndBelowPositiveDiagonal(Double[,], out Double, out Double)

    Declaration
    public static void AverageValuesInTriangleAboveAndBelowPositiveDiagonal(double[, ] m, out double upperAv, out double lowerAv)
    Parameters
    Type Name Description
    Double[,] m
    Double upperAv
    Double lowerAv
    | 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[, ] matrix, double min, double max)
    Parameters
    Type Name Description
    Double[,] matrix

    the matrix to be bound.

    Double min

    The minimum bound.

    Double max

    The maximum bound.

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

    CentreIsLocalMaximum(Double[,], Double)

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

    ConcatenateMatrixRows(List<Double[,]>)

    TODO: This method concatenates time-sequence data but does not check that the files are in temporal sequence. Nor does it check for temporal gaps. This method assumes that the column count for each matrix in list is identical.

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

    ConcatenateMatrixRows(Double[,], Double[,])

    Concatenates two matrices that have the same column count. That is, each row of the output matrix is the join of the equivalent two rows of the input matrices.

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

    ConcatenateTwoMatrices(Double[,], Double[,])

    Concatenates two matrices that have the same row count. That is, each row of the output matrix is the join of the equivalent two rows of the input matrices. WARNING: If the two matrices do not have the same number of rows, an exception is thrown.

    Declaration
    public static double[, ] ConcatenateTwoMatrices(double[, ] matrix1, double[, ] matrix2)
    Parameters
    Type Name Description
    Double[,] matrix1
    Double[,] matrix2
    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

    ConvertMatrixOfByte2Double(Byte[,])

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

    ConvertMatrixOfDouble2Byte(Double[,])

    This method assumes that the passed matrix of double already takes values between 0.0 and 1.0.

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

    DivideMatrix(Double[,], Double)

    DIVIDE matrix m1 by factor.

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

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

    Multiplies two matrices by summing m1[r,c]*m2[r,c].

    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

    EuclidianDistance(Double[,], Double[,])

    returns EUCLIDIAN DISTANCE BETWEEN two matrices.

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

    FilterBackgroundValues(Double[,], Double)

    The ColourFilter parameter determines how much the low index values are emphasized or de-emphasized. The purpose is to make low intensity features stand out (emphasis) or become even less obvious (de-emphasis). This parameter applies a function that lies between y=x^-2 and y=x^2, i.e. between the square-root and the square. For an acoustic index value of X, newX = [(1/c - 1) * X^2 + X] * c, where c = the supplied filterCoeff. When filterCoeff = 1.0, small values are maximally emphasized, i.e. y=sqrt(x). When filterCoeff = 0.0, the matrix remains unchanged, that is, y=x. When filterCoeff =-1.0, small values are maximally de-emphasized, i.e. y=x^2. Generally usage suggests that a value of -0.25 is suitable. i.e. a slight de-emphasis. .. Visual example https://www.wolframalpha.com/input/?i=plot+y+%3D+%5B(1%2Fc+-+1)+*+x%5E2+%2B+x%5D+*+c+,+x%3D0..1,+c%3D0.0..2.0.

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

    FrameMatrixWithZeros(Double[,], Int32)

    Adds a frame around a matrix by adding row and columns of zeros.

    Declaration
    public static double[, ] FrameMatrixWithZeros(double[, ] matrix, int frameWidth)
    Parameters
    Type Name Description
    Double[,] matrix

    matrix.

    Int32 frameWidth

    The number of rows/columns of zeros to be added.

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

    GetColumn(Byte[,], Int32)

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

    GetColumn(Double[,], Int32)

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

    GetColumnAverages(Double[,])

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

    GetColumnMedians(Double[,])

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

    GetColumnSums(Double[,])

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

    GetMaximumColumnValues(Double[,])

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

    GetMaximumRowValues(Double[,])

    Declaration
    public static double[] GetMaximumRowValues(double[, ] m)
    Parameters
    Type Name Description
    Double[,] m
    Returns
    Type Description
    Double[]
    | 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

    GetRowAverages(Double[,])

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

    GetRowAveragesOfSubmatrix(Double[,], Int32, Int32, Int32, Int32)

    Returns an array of row averages in the submatrix of passed matrix. This method combines two methods, Submatrix() & GetRowAverages(), for efficiency Assume that RowTop LT RowBottom, ColumnLeft LT ColumnRight. Row, column indices start at 0.

    Declaration
    public static double[] GetRowAveragesOfSubmatrix(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

    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

    GetRowSums(Double[,])

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

    LogTransform(Double[,])

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

    Matrix2Array(Double[,])

    Converts a matrix to a vector by concatenating its columns.

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

    Matrix2LogValues(Double[,])

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

    Matrix2ZScores(Double[,], Double, Double)

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

    MatrixDimensionsAreEqual(Double[,], Double[,])

    Declaration
    public static bool MatrixDimensionsAreEqual(double[, ] m1, double[, ] m2)
    Parameters
    Type Name Description
    Double[,] m1
    Double[,] m2
    Returns
    Type Description
    Boolean
    | 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

    the matrix to rotate.

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

    MatrixRotate90Clockwise(Byte[,])

    Declaration
    public static byte[, ] MatrixRotate90Clockwise(byte[, ] m)
    Parameters
    Type Name Description
    Byte[,] m
    Returns
    Type Description
    Byte[,]
    | 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

    the matrix to rotate.

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

    MatrixRotate90Clockwise(Int32[,])

    Rotates a matrix 90 degrees clockwise.

    Declaration
    public static int[, ] MatrixRotate90Clockwise(int[, ] m)
    Parameters
    Type Name Description
    Int32[,] m

    the matrix to rotate.

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

    MaxOfTwoMatrices(Double[,], Double[,])

    Create a matrix whose values are the max of two passed matrices, m1 and m2.

    Declaration
    public static double[, ] MaxOfTwoMatrices(double[, ] m1, double[, ] m2)
    Parameters
    Type Name Description
    Double[,] m1
    Double[,] m2
    Returns
    Type Description
    Double[,]
    | 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 values in a matrix.

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

    MultiplyMatrixByFactor(Double[,], Double)

    Multiplies the values in a matrix by a factor. Used to convert log-energy values to decibels.

    Declaration
    public static double[, ] MultiplyMatrixByFactor(double[, ] matrix, double factor)
    Parameters
    Type Name Description
    Double[,] matrix
    Double factor
    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

    NormaliseInZeroOne(Double[,], Double, Double)

    Normalises a matrix so that --- all values LT passed MIN are truncated to 0 and all values GT passed MAX are truncated to 1.

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

    NormaliseInZeroOne(Double[,], out Double, out Double)

    Normalises a matrix so that all values lie between 0 and 1. Min value in matrix set to 0.0. Max value in matrix is set to 1.0. Rerturns the min and the max.

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

    NormaliseMatrixColumns(Double[,])

    Normalises a matrix so that the values in each column lie between 0 and 1. This method is used in producing mfcc's where all the coefficients are weighted so has to have similar range.

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

    NormaliseMatrixValues(Double[,])

    Normalises matrix values so that the min and max values become [0,1], respectively.

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

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

    returns the min and max percentile values of the values in passed matrix.

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

    the matrix.

    Int32 minPercentile

    minPercentile.

    Int32 maxPercentile

    maxPercentile.

    Double minCut

    power value equivalent to minPercentile.

    Double maxCut

    power value equivalent to maxPercentile.

    | Improve this Doc View Source

    PrintMatrix(Double[,])

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

    RemoveLastNRows(Double[,], Int32)

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

    RemoveOrphanOnesInBinaryMatrix(Byte[,])

    REMOVE ORPHAN PEAKS.

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

    RescaleMatrixBetweenMinAndMax(Double[,], Double, Double)

    Rescales the values of a matrix so that its in and max values are those passed.

    Declaration
    public static double[, ] RescaleMatrixBetweenMinAndMax(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

    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

    SetDoubletsToZero(Double[,])

    Sets any element in matrix with value> 0.0 to zero if all surrounding elements also = zero.

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

    SetRow(Double[,], Int32, Double[])

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

    SetSingletonsToZero(Double[,])

    Sets any element in matrix with value> 0.0 to zero if all surrounding elements also = zero.

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

    SmoothColumns(Double[,], Int32)

    This method smooths the columns of a matrix using a moving average filter. It is useful for smoothing the freqeuncy bins of a spectrogram where it is assumed that the matrix columns are the frequency bins.

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

    SmoothRows(Double[,], Int32)

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

    SpectrogramDecibels2Power(Double[,])

    Convert the Decibels values in a matrix of spectrogram values to power values. Assume that all matrix values are positive due to prior noise removal.

    Declaration
    public static double[, ] SpectrogramDecibels2Power(double[, ] m)
    Parameters
    Type Name Description
    Double[,] m

    matrix of positive Decibel values.

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

    SpectrogramPower2DeciBels(Double[,], Double, out Double, out Double)

    Convert the power values in a matrix of spectrogram values to Decibels using: dB = 10*log10(power). Assume that all matrix values are positive i.e. due to prior noise removal. NOTE: This method also returns the min and max decibel values in the passed matrix. NOTE: A decibel value should be a ratio. Here the ratio is implied ie it is relative to the value of maximum power in the original normalised signal.

    Declaration
    public static double[, ] SpectrogramPower2DeciBels(double[, ] m, double powerEpsilon, out double min, out double max)
    Parameters
    Type Name Description
    Double[,] m

    matrix of positive power values.

    Double powerEpsilon
    Double min

    min value to be return by out.

    Double max

    max value to be return by out.

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

    SquareRootOfValues(Double[,])

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

    SquareValues(Double[,])

    Squares the values in a matrix. Primarily used when converting FFT coefficients in amplitude spectrogram to power values.

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

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

    Returns the submatrix of passed matrix. The returned submatrix includes the rows and column passed as bounds. Assume that RowTop GT RowBottom, ColumnLeft LT ColumnRight. Row, column indices start at 0.

    Declaration
    public static T[, ] Submatrix<T>(T[, ] m, int r1, int c1, int r2, int c2)
    Parameters
    Type Name Description
    T[,] m

    the parent matrix.

    Int32 r1

    start row.

    Int32 c1

    start column.

    Int32 r2

    end row inclusive.

    Int32 c2

    end column inclusive.

    Returns
    Type Description
    T[,]

    matrix to be returned.

    Type Parameters
    Name Description
    T
    | Improve this Doc View Source

    SubtractAndTruncate2Zero(Double[,], Double)

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

    SubtractConstant(Double[,], Double)

    Declaration
    public static double[, ] SubtractConstant(double[, ] matrix, double constant)
    Parameters
    Type Name Description
    Double[,] matrix
    Double constant
    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

    SubtractMedian(Double[,])

    Noise reduce matrix by subtracting the median value and truncating negative values to zero.

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

    SubtractValuesFromOne(Double[,])

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

    SumColumn(Byte[,], Int32)

    Declaration
    public static int SumColumn(byte[, ] m, int colId)
    Parameters
    Type Name Description
    Byte[,] m
    Int32 colId
    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

    SumColumns(Double[,])

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

    SumNegativeDiagonal(Double[,])

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

    SumPositiveDiagonal(Double[,])

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

    SumRow(Int32[,], Int32)

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

    SumRows(Double[,])

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

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

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

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

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

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

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

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

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

    ThresholdBinarySpectrum(Byte[,], Double[,], Double)

    Declaration
    public static byte[, ] ThresholdBinarySpectrum(byte[, ] binary, double[, ] m, double threshold)
    Parameters
    Type Name Description
    Byte[,] binary
    Double[,] m
    Double threshold
    Returns
    Type Description
    Byte[,]
    | Improve this Doc View Source

    ThresholdMatrix2Binary(Double[,], Double)

    Converts a matrix of doubles to binary using passed threshold.

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

    ThresholdMatrix2RealBinary(Double[,], Double)

    Converts a matrix of doubles to binary using passed threshold.

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

    Truncate2Zero(Double[,], Double)

    truncate values below threshold to zero.

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

    WriteLocationOfMaximumValues(Double[,])

    Writes the r, c location of the maximum valuesin the matrix.

    Declaration
    public static void WriteLocationOfMaximumValues(double[, ] m)
    Parameters
    Type Name Description
    Double[,] m
    | 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
    In This Article
    • Methods
      • AddBlankRows(Double[,], Int32)
      • AddMatrices(Double[,], Double[,])
      • AddMatricesWeightedSum(Double[,], Double, Double[,], Double)
      • ArrayToMatrixByColumn(Double[], Int32, Int32)
      • ArrayToMatrixByRow(Double[], Int32, Int32)
      • AverageValuesInTriangleAboveAndBelowNegativeDiagonal(Double[,], out Double, out Double)
      • AverageValuesInTriangleAboveAndBelowPositiveDiagonal(Double[,], out Double, out Double)
      • BoundMatrix(Double[,], Double, Double)
      • CentreIsLocalMaximum(Double[,], Double)
      • ConcatenateMatrixRows(List<Double[,]>)
      • ConcatenateMatrixRows(Double[,], Double[,])
      • ConcatenateTwoMatrices(Double[,], Double[,])
      • ConvertList2Matrix(List<Double[]>)
      • ConvertMatrixOfByte2Double(Byte[,])
      • ConvertMatrixOfDouble2Byte(Double[,])
      • DivideMatrix(Double[,], Double)
      • DotProduct(Double[,], Double[,])
      • EuclidianDistance(Double[,], Double[,])
      • FilterBackgroundValues(Double[,], Double)
      • FrameMatrixWithZeros(Double[,], Int32)
      • GetColumn(Byte[,], Int32)
      • GetColumn(Double[,], Int32)
      • GetColumnAverages(Double[,])
      • GetColumnMedians(Double[,])
      • GetColumnSums(Double[,])
      • GetMaximumColumnValues(Double[,])
      • GetMaximumRowValues(Double[,])
      • GetRow(Double[,], Int32)
      • GetRowAverages(Double[,])
      • GetRowAveragesOfSubmatrix(Double[,], Int32, Int32, Int32, Int32)
      • GetRowSum(Double[,], Int32)
      • GetRowSums(Double[,])
      • LogTransform(Double[,])
      • Matrix2Array(Double[,])
      • Matrix2LogValues(Double[,])
      • Matrix2ZScores(Double[,], Double, Double)
      • MatrixDimensionsAreEqual(Double[,], Double[,])
      • MatrixRotate90Anticlockwise(Double[,])
      • MatrixRotate90Clockwise(Byte[,])
      • MatrixRotate90Clockwise(Double[,])
      • MatrixRotate90Clockwise(Int32[,])
      • MaxOfTwoMatrices(Double[,], Double[,])
      • MinMax(Double[,], out Double, out Double)
      • MinMax(Int32[,], out Int32, out Int32)
      • MultiplyMatrixByFactor(Double[,], Double)
      • Normalise_zeroEdge(Double[,], Double, Double)
      • NormaliseInZeroOne(Double[,], Double, Double)
      • NormaliseInZeroOne(Double[,], out Double, out Double)
      • NormaliseMatrixColumns(Double[,])
      • NormaliseMatrixValues(Double[,])
      • PercentileCutoffs(Double[,], Int32, Int32, out Double, out Double)
      • PrintMatrix(Double[,])
      • RemoveLastNRows(Double[,], Int32)
      • RemoveOrphanOnesInBinaryMatrix(Byte[,])
      • RescaleMatrixBetweenMinAndMax(Double[,], Double, Double)
      • SetColumn(Double[,], Int32, Double[])
      • SetDoubletsToZero(Double[,])
      • SetRow(Double[,], Int32, Double[])
      • SetSingletonsToZero(Double[,])
      • SmoothColumns(Double[,], Int32)
      • SmoothRows(Double[,], Int32)
      • SpectrogramDecibels2Power(Double[,])
      • SpectrogramPower2DeciBels(Double[,], Double, out Double, out Double)
      • SquareRootOfValues(Double[,])
      • SquareValues(Double[,])
      • Submatrix<T>(T[,], Int32, Int32, Int32, Int32)
      • SubtractAndTruncate2Zero(Double[,], Double)
      • SubtractConstant(Double[,], Double)
      • SubtractMatrices(Double[,], Double[,])
      • SubtractMedian(Double[,])
      • SubtractValuesFromOne(Double[,])
      • SumColumn(Byte[,], Int32)
      • SumColumn(Int32[,], Int32)
      • SumColumns(Double[,])
      • SumNegativeDiagonal(Double[,])
      • SumPositiveDiagonal(Double[,])
      • SumRow(Int32[,], Int32)
      • SumRows(Double[,])
      • SumTriangleAboveNegativeDiagonal(Double[,], out Double, out Int32)
      • SumTriangleAbovePositiveDiagonal(Double[,], out Double, out Int32)
      • SumTriangleBelowNegativeDiagonal(Double[,], out Double, out Int32)
      • SumTriangleBelowPositiveDiagonal(Double[,], out Double, out Int32)
      • ThresholdBinarySpectrum(Byte[,], Double[,], Double)
      • ThresholdMatrix2Binary(Double[,], Double)
      • ThresholdMatrix2RealBinary(Double[,], Double)
      • Truncate2Zero(Double[,], Double)
      • WriteLocationOfMaximumValues(Double[,])
      • WriteMatrix(Double[,])
      • WriteMatrix(Double[,], String)
      • WriteMatrix(Int32[,])
      • WriteMatrix2File(Double[,], String)
    Generated by DocFX AP docs version: 21.7.0.4-master-e26127a50d7bd7472d47288f10e61014fb981f7f-DIRTY-CI:144 Back to top