Package qa.analyser
Class SequenceSummary
java.lang.Object
qa.analyser.SequenceSummary
- All Implemented Interfaces:
Cloneable
Summary of sequence data for a test report
- Author:
- dg50
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionadd
(SequenceSummary otherSummary) Add the content of another summary into this summary and return a new object containing the data from both.clone()
int[]
getCountGtThan
(int than) Return array of 0's and 1s, 1's if hit count >= parameterdouble[]
double
int[]
Get the number of missed sounds for each range.int[]
double[]
int[]
double[][]
getSequenceHitData
(int minHit) Get sequence hit data in same format as single sound hit data, i.e.double[][]
Get ranges and hit/miss data for single sounds so they can be used in logistic regression
-
Constructor Details
-
SequenceSummary
public SequenceSummary(double[] seqRanges, int[] seqSounds, int[] seqHits) - Parameters:
seqRanges
- ranges to each sequenceseqSounds
- number of generated sounds in each sequenceseqHits
- number of detected sounds in each sequence
-
-
Method Details
-
getSingleSoundData
public double[][] getSingleSoundData()Get ranges and hit/miss data for single sounds so they can be used in logistic regression- Returns:
- array of ranges and 1/0 hit miss data.
-
getSequenceHitData
public double[][] getSequenceHitData(int minHit) Get sequence hit data in same format as single sound hit data, i.e. two arrays of doubles.- Parameters:
minHit
- minimum number of sounds detected to count as hit.- Returns:
- array of ranges and 1/0 hit data.
-
getMaxRange
public double getMaxRange() -
getSeqRanges
public double[] getSeqRanges()- Returns:
- the seqRanges
-
getSeqSounds
public int[] getSeqSounds()- Returns:
- the seqSounds
-
getSeqHits
public int[] getSeqHits()- Returns:
- the seqHits
-
getCountGtThan
public int[] getCountGtThan(int than) Return array of 0's and 1s, 1's if hit count >= parameter- Parameters:
than
- greater than or == this to count as a detected sequence- Returns:
- binary array for sequence its.
-
getMisses
public int[] getMisses()Get the number of missed sounds for each range.- Returns:
- array count of missed sounds.
-
getDetectionRate
public double[] getDetectionRate()- Returns:
- detection rate - detected sounds / generated sounds
-
clone
-
add
Add the content of another summary into this summary and return a new object containing the data from both.- Parameters:
otherSummary
- Other summary- Returns:
- combined summary.
-