Class LdSpectrogramTStatistic
Inheritance
LdSpectrogramTStatistic
Assembly: AudioAnalysisTools.dll
public static class LdSpectrogramTStatistic
Fields
|
Improve this Doc
View Source
Declaration
public const double T_STAT_THRESHOLD = 3.29
Field Value
Methods
|
Improve this Doc
View Source
Declaration
public static Image<Rgb24> DrawDifferenceSpectrogramDerivedFromSingleTStatistic(string key, LDSpectrogramRGB cs1, LDSpectrogramRGB cs2, double tStatThreshold, double colourGain)
Parameters
Returns
Type |
Description |
SixLabors.ImageSharp.Image<SixLabors.ImageSharp.PixelFormats.Rgb24> |
|
|
Improve this Doc
View Source
Declaration
public static Image<Rgb24> DrawDifferenceSpectrogramDerivedFromSingleTStatistic(string key, double[, ] m1, double[, ] m2, double[, ] tStatM, double tStatThreshold, double colourGain)
Parameters
Returns
Type |
Description |
SixLabors.ImageSharp.Image<SixLabors.ImageSharp.PixelFormats.Rgb24> |
|
|
Improve this Doc
View Source
double tStatThreshold = 1.645; // 0.05% confidence @ df=infinity
double[] table_df_inf = { 0.25, 0.51, 0.67, 0.85, 1.05, 1.282, 1.645, 1.96, 2.326, 2.576, 3.09, 3.291 };
double[] table_df_15 = { 0.26, 0.53, 0.69, 0.87, 1.07, 1.341, 1.753, 2.13, 2.602, 2.947, 3.73, 4.073 };
double[] alpha = { 0.40, 0.30, 0.25, 0.20, 0.15, 0.10, 0.05, 0.025, 0.01, 0.005, 0.001, 0.0005 }.
Declaration
public static Image DrawTStatisticSpectrogram(double[, ] tStatMatrix)
Parameters
Type |
Name |
Description |
Double[,] |
tStatMatrix |
|
Returns
Type |
Description |
SixLabors.ImageSharp.Image |
|
|
Improve this Doc
View Source
Declaration
public static Image DrawTStatisticSpectrogramsOfMultipleIndices(LDSpectrogramRGB cs1, LDSpectrogramRGB cs2, double tStatThreshold, double colourGain)
Parameters
Returns
Type |
Description |
SixLabors.ImageSharp.Image |
|
|
Improve this Doc
View Source
Declaration
public static Image DrawTStatisticSpectrogramsOfSingleIndex(string key, LDSpectrogramRGB cs1, LDSpectrogramRGB cs2, double tStatThreshold)
Parameters
Returns
Type |
Description |
SixLabors.ImageSharp.Image |
|
|
Improve this Doc
View Source
Declaration
public static void DrawTStatisticThresholdedDifferenceSpectrograms(Config configuration)
Parameters
Type |
Name |
Description |
Config |
configuration |
|
|
Improve this Doc
View Source
This method compares the acoustic indices derived from two different long duration recordings of the same length.
It takes as input six csv files of acoustic indices in spectrogram columns, three csv files for each of the original recordings to be compared.
The method produces four spectrogram image files:
- A triple image. Top: The spectrogram for index 1, recording 1.
Middle: The spectrogram for index 1, recording 2.
Bottom: A t-statistic thresholded difference spectrogram for INDEX 1 (derived from recordings 1 and 2).
- A triple image. Top: The spectrogram for index 2, recording 1.
Middle: The spectrogram for index 2, recording 2.
Bottom: A t-statistic thresholded difference spectrogram for INDEX 2 (derived from recordings 1 and 2).
- A triple image. Top: The spectrogram for index 3, recording 1.
Middle: The spectrogram for index 3, recording 2.
Bottom: A t-statistic thresholded difference spectrogram for INDEX 3 (derived from recordings 1 and 2).
- A double image. Top: A t-statistic thresholded difference spectrogram (t-statistic is positive).
Bottom: A t-statistic thresholded difference spectrogram (t-statistic is negative).
Declaration
public static void DrawTStatisticThresholdedDifferenceSpectrograms(DirectoryInfo ipdir, FileInfo ipFileName1, FileInfo ipSdFileName1, FileInfo ipFileName2, FileInfo ipSdFileName2, DirectoryInfo opdir)
Parameters
|
Improve this Doc
View Source
Declaration
public static double[, ] GetDifferenceSpectrogramDerivedFromSingleTStatistic(string key, LDSpectrogramRGB cs1, LDSpectrogramRGB cs2, double tStatThreshold)
Parameters
Returns
|
Improve this Doc
View Source
Declaration
public static double[, ] GetTStatisticMatrix(double[, ] m1Av, double[, ] m1Sd, int n1, double[, ] m2Av, double[, ] m2Sd, int n2)
Parameters
Returns
|
Improve this Doc
View Source
Declaration
public static double[, ] GetTStatisticMatrix(string key, LDSpectrogramRGB cs1, LDSpectrogramRGB cs2)
Parameters
Returns