Class LSKiwi3
Assembly: AnalysisPrograms.dll
Syntax
[Obsolete("This code does not work. It should be ported to be a modern recognizer")]
public class LSKiwi3
Fields
|
Improve this Doc
View Source
AnalysisName
Declaration
public const string AnalysisName = "LSKiwi3"
Field Value
|
Improve this Doc
View Source
CommandName
Declaration
public const string CommandName = "Kiwi"
Field Value
|
Improve this Doc
View Source
ResampleRate
Declaration
public const int ResampleRate = 17640
Field Value
Properties
|
Improve this Doc
View Source
DefaultConfiguration
Declaration
public string DefaultConfiguration { get; }
Property Value
|
Improve this Doc
View Source
DefaultSettings
Declaration
public AnalysisSettings DefaultSettings { get; }
Property Value
|
Improve this Doc
View Source
DisplayName
Declaration
public string DisplayName { get; }
Property Value
|
Improve this Doc
View Source
Identifier
Declaration
public string Identifier { get; }
Property Value
Methods
|
Improve this Doc
View Source
AddContext2Table(DataTable, TimeSpan, TimeSpan)
Declaration
public static void AddContext2Table(DataTable dt, TimeSpan segmentStartMinute, TimeSpan recordingTimeSpan)
Parameters
|
Improve this Doc
View Source
Analyse(AnalysisSettings)
Declaration
public AnalysisResult Analyse(AnalysisSettings analysisSettings)
Parameters
Returns
|
Improve this Doc
View Source
Analysis(FileInfo, AnalysisSettings, TimeSpan)
################ THE KEY ANALYSIS METHOD
Returns a DataTable.
Declaration
public static Tuple<BaseSonogram, double[, ], List<Plot>, List<AcousticEvent>, TimeSpan> Analysis(FileInfo fiSegmentOfSourceFile, AnalysisSettings analysisSettings, TimeSpan segmentStartOffset)
Parameters
Returns
|
Improve this Doc
View Source
CalculateDeltaPeriodScore(Double[], Double)
Declaration
public static double[] CalculateDeltaPeriodScore(double[] periodicity, double framesPerSecond)
Parameters
Type |
Name |
Description |
Double[] |
periodicity |
|
Double |
framesPerSecond |
|
Returns
|
Improve this Doc
View Source
CalculateGridScore(Double[], Double[])
Declaration
public static double[] CalculateGridScore(double[] dBArray, double[] peakPeriodicity)
Parameters
Type |
Name |
Description |
Double[] |
dBArray |
|
Double[] |
peakPeriodicity |
|
Returns
|
Improve this Doc
View Source
Checks acoustic activity that spills outside the kiwi bandwidth.
use the periodicity array to cut down comoputaiton.
Only look where we already know there is periodicity.
Declaration
public static double[] CalculateKiwiBandWidthScore(BaseSonogram sonogram, int minHz, int maxHz, double[] peakPeriodicity)
Parameters
Returns
|
Improve this Doc
View Source
Checks acoustic activity that spills outside the kiwi bandwidth.
Declaration
public static double CalculateKiwiBandWidthScore(BaseSonogram sonogram, TimeSpan start, TimeSpan end, int minHz, int maxHz)
Parameters
Returns
|
Improve this Doc
View Source
CalculateKiwiChirpScore(Double[], Double[], Double[,])
Declaration
public static double[] CalculateKiwiChirpScore(double[] dBArray, double[] peakPeriodicity, double[, ] matrix)
Parameters
Returns
|
Improve this Doc
View Source
Declaration
public static double CalculatePeakSnrScore(AcousticEvent ev, double[] dBarray)
Parameters
Returns
|
Improve this Doc
View Source
ConvertChirpsToScoreArray(Double[], Double[], Double)
Declaration
public static double[] ConvertChirpsToScoreArray(double[] chirps, double[] dBArray, double framesPerSecond)
Parameters
Returns
|
Improve this Doc
View Source
ConvertEvents2Indices(DataTable, TimeSpan, TimeSpan, Double)
Converts a DataTable of events to a datatable where one row = one minute of indices.
Declaration
public DataTable ConvertEvents2Indices(DataTable dt, TimeSpan unitTime, TimeSpan sourceDuration, double scoreThreshold)
Parameters
Returns
|
Improve this Doc
View Source
ConvertScoreArray2Events(Double[], Double[], Double[], Double[], Double[], Double[], Double[], Int32, Int32, Double, Double, Double, Double, Double, TimeSpan)
Declaration
public static List<AcousticEvent> ConvertScoreArray2Events(double[] dBarray, double[] intensity, double[] gridScore, double[] deltaPeriodScore, double[] chirpScores, double[] comboScore, double[] bwScore, int minHz, int maxHz, double framesPerSec, double freqBinWidth, double scoreThreshold, double minDuration, double maxDuration, TimeSpan segmentStartOffset)
Parameters
Returns
|
Improve this Doc
View Source
Declaration
public static void CropEvents(List<AcousticEvent> events, double[] activity, double minDurationInSeconds, TimeSpan segmentStartOffset)
Parameters
|
Improve this Doc
View Source
Declaration
public static Tuple<List<Plot>, double[, ], List<AcousticEvent>> DetectKiwi(BaseSonogram sonogram, int minHz, int maxHz, double minPeriod, double maxPeriod, double eventThreshold, double minDuration, double maxDuration, Dictionary<string, double> weights, TimeSpan segmentStartOffset)
Parameters
Returns
|
Improve this Doc
View Source
Execute(LSKiwi3.Arguments)
A WRAPPER AROUND THE analyser.Analyze(analysisSettings) METHOD
To be called as an executable with command line arguments.
Declaration
public static void Execute(LSKiwi3.Arguments arguments)
Parameters
|
Improve this Doc
View Source
Declaration
public static void MergeEvents(List<AcousticEvent> events, double minGapInSeconds, TimeSpan segmentStartOffset)
Parameters
|
Improve this Doc
View Source
NormaliseColumnsOfDataTable(DataTable)
takes a data table of indices and normalises column values to values in [0,1].
Declaration
public static DataTable NormaliseColumnsOfDataTable(DataTable dt)
Parameters
Returns
|
Improve this Doc
View Source
ProcessCsvFile(FileInfo, FileInfo)
This method should no longer be used.
It depends on use of the DataTable class which ceased when Anthony did a major refactor in mid-2014.
Declaration
public Tuple<DataTable, DataTable> ProcessCsvFile(FileInfo fiCsvFile, FileInfo fiConfigFile)
Parameters
Returns
|
Improve this Doc
View Source
Declaration
public static DataTable WriteEvents2DataTable(List<AcousticEvent> predictedEvents)
Parameters
Returns
Extension Methods