Class TemporalMatrix
Inheritance
TemporalMatrix
Assembly: TowseyLibrary.dll
Syntax
public class TemporalMatrix
Constructors
|
Improve this Doc
View Source
TemporalMatrix(String, Double[,], TimeSpan)
Declaration
public TemporalMatrix(string temporalDirection, double[, ] m, TimeSpan dataScale)
Parameters
Properties
|
Improve this Doc
View Source
DataScale
Declaration
public TimeSpan DataScale { get; set; }
Property Value
|
Improve this Doc
View Source
EndTime
Declaration
public TimeSpan EndTime { get; set; }
Property Value
|
Improve this Doc
View Source
Matrix
Declaration
public double[, ] Matrix { get; set; }
Property Value
|
Improve this Doc
View Source
StartTime
Declaration
public TimeSpan StartTime { get; set; }
Property Value
|
Improve this Doc
View Source
TemporalDirection
Declaration
public string TemporalDirection { get; set; }
Property Value
Methods
|
Improve this Doc
View Source
CompressFrameSpectrograms(Double[,], Int32)
This method assumes that the matrix spectrograms are oriented so that the rows = spectra
and the columns = freq bins, i.e. rotated 90 degrees from normal orientation.
Declaration
public static double[, ] CompressFrameSpectrograms(double[, ] matrix, int compressionFactor)
Parameters
Type |
Name |
Description |
Double[,] |
matrix |
|
Int32 |
compressionFactor |
|
Returns
|
Improve this Doc
View Source
CompressMatrixInTemporalDirectionByTakingAverage(TimeSpan)
Declaration
public double[, ] CompressMatrixInTemporalDirectionByTakingAverage(TimeSpan newScale)
Parameters
Returns
|
Improve this Doc
View Source
CompressMatrixInTemporalDirectionByTakingMax(TimeSpan)
Declaration
public double[, ] CompressMatrixInTemporalDirectionByTakingMax(TimeSpan newScale)
Parameters
Returns
|
Improve this Doc
View Source
DataDuration()
Declaration
public TimeSpan DataDuration()
Returns
|
Improve this Doc
View Source
ExpandSubmatrixInTemporalDirection(TimeSpan, TimeSpan, TimeSpan)
Declaration
public double[, ] ExpandSubmatrixInTemporalDirection(TimeSpan startTime, TimeSpan blockDuration, TimeSpan newScale)
Parameters
Returns
|
Improve this Doc
View Source
GetDataBlock(TimeSpan, Int32)
Declaration
public double[, ] GetDataBlock(TimeSpan startTime, int frameCount)
Parameters
Returns
|
Improve this Doc
View Source
GetDataBlock(TimeSpan, TimeSpan)
Declaration
public double[, ] GetDataBlock(TimeSpan startTime, TimeSpan blockDuration)
Parameters
Returns
|
Improve this Doc
View Source
SwapTemporalDimension()
changes temporal dimension from rows to columns or vice-versa.
Declaration
public void SwapTemporalDimension()
Extension Methods