public class RoccaContourDataBlock extends PamDataBlock<RoccaContourDataUnit>
Modifier and Type | Class and Description |
---|---|
static class |
RoccaContourDataBlock.PosSweepIndx
A field mapping the sweep direction to the nominal index used to train
the classifier
|
static class |
RoccaContourDataBlock.SweepIndx
A field mapping the sweep direction to the nominal index used to train
the classifier
|
ITERATOR_END, MATCH_AFTER, MATCH_BEFORE, MATCH_EXACT, MIX_DONOTHING, MIX_INTODATABASE, MIX_OUTOFDATABASE, NOTIFY_NEW_DATA, NOTIFY_UPDATE_DATA, OFFLINE_DATA_CANCEL, OFFLINE_DATA_INTERRUPT, OFFLINE_DATA_WAIT, orderLock, POSITION_AFTER, POSITION_BEFORE, REFERENCE_ABSOLUTE, REFERENCE_CURRENT, REQUEST_DATA_LOADED, REQUEST_DATA_PARTIAL_LOAD, REQUEST_EXCEPTION, REQUEST_INTERRUPTED, REQUEST_NO_DATA, REQUEST_SAME_REQUEST
Constructor and Description |
---|
RoccaContourDataBlock(PamProcess parentProcess,
int channelMap)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
calculateClickStats()
Calculate the statistics specific to a click detection
|
void |
calculateStatistics()
Once the Datablock is filled, this routine will calculate the
statistics of the contour.
|
java.lang.String |
createContourStatsHeader()
Creates the header line for the contour status summary file.
|
java.lang.String |
createContourStatsString()
Method to create a string containing the current contour statistics.
|
java.lang.String |
createContourStatsString(java.lang.String clipFile,
int detectionCount)
Method to create a string containing the current contour statistics.
|
java.lang.String |
createContourStatsString(java.lang.String clipFile,
int detectionCount,
java.lang.String sightNum)
Method to create a string containing the current contour statistics.
|
java.lang.String |
getClassifiedAs() |
ClickDetection |
getClickDetection() |
ClickDetection |
getClickNoise() |
java.util.EnumMap<RoccaContourStats.ParamIndx,java.lang.Double> |
getContour() |
int |
getFirstUnitWithWhistle() |
java.util.ArrayList<java.lang.String> |
getKeyNames() |
int |
getLastUnitWithWhistle() |
PamRawDataBlock |
getPrdb() |
RoccaContourStats |
getRCS() |
double |
getStartTime() |
double[] |
getTreeVotes() |
java.io.File |
getWavFilename()
Get the filename of the original wav file
|
boolean |
isStatsRun() |
void |
setClassifiedAs(java.lang.String classifiedAs) |
void |
setClickDetection(ClickDetection clickDetection)
Sets the clickDetection parameter.
|
void |
setClickNoise(ClickDetection clickNoise) |
void |
setFirstUnitWithWhistle(int firstUnitWithWhistle) |
void |
setLastUnitWithWhistle(int lastUnitWithWhistle) |
void |
setPrdb(PamRawDataBlock prdb) |
void |
setStartTime(double startTime) |
void |
setStatsRun(boolean statsRun) |
void |
setTreeVotes(double[] treeVotes) |
addDataAnnotationType, addLocalisationContents, addObserver, addObserver, addOfflineDataMap, addPamData, autoSetDataBlockMixMode, cancelDataOrder, clearAll, clearChannelIterators, clearDeletedList, createProcessAnnotations, createProcessAnnotations, dumpBlockContents, findAnnotation, findAnnotation, findByDatabaseIndex, findDataUnit, findDataUnit, findUnitsinInterval, getBinaryDataSource, getCanLog, getChannelIterator, getChannelIteratorCount, getChannelMap, getClosestUnitMillis, getClosestUnitMillis, getCurrentViewDataEnd, getCurrentViewDataStart, getDataAnnotationType, getDataGain, getDatagrammedMap, getDatagramProvider, getDataName, getDataSelectCreator, getDataSelector, getDataUnit, getFirstUnit, getFirstUnit, getFirstUnitAfter, getLastUnit, getLastUnit, getListIterator, getListIterator, getListIteratorFromEnd, getListIteratorFromStart, getLocalisationContents, getLogging, getLoggingName, getLongDataName, getMixedDirection, getNaturalLifetime, getNaturalLifetimeMillis, getNextDataStart, getNextUnit, getNextUnit, getNumDataAnnotationTypes, getNumOfflineDataMaps, getNumRequiredBeforeLoadTime, getOfflineData, getOfflineDataMap, getOfflineDataMap, getOrderStatus, getParentProcess, getPreceedingUnit, getPreceedingUnit, getPreceedingUnit, getPreceedingUnit, getPrevDataEnd, getPrimaryDataMap, getProcessAnnotations, getQuickId, getRawSourceDataBlock, getRawSourceDataBlock2, getRecycledUnit, getRecyclingStoreLength, getRemovedItems, getReverseChannelIterator, getSampleRate, getSaveRequirements, getShouldBinary, getShouldLog, getSourceDataBlock, getSourceProcess, getUnitClass, getUnitIndex, getUnitsCount, getUnitsCountFromTime, isCanClipGenerate, isClearAtStart, isLinkGpsData, isRecycling, loadViewerData, masterClockUpdate, noteNewSettings, notifyModelChanged, orderOfflineData, orderOfflineData, remove, remove, removeOfflineDataMap, reset, saveViewerData, setBinaryDataSource, setCanClipGenerate, setChannelMap, setClearAtStart, setDatagramProvider, setDataName, setLinkGpsData, setLocalisationContents, SetLogging, setMixedDirection, setNaturalLifetime, setNaturalLifetimeMillis, setRecordingTrigger, setRecycling, setRecyclingStoreLength, setSampleRate, setShouldBinary, setShouldLog, shouldNotify, sortData, toString, updatePamData
canDraw, clearchanged, countObservers, createKeyItem, deleteObserver, deleteObservers, drawDataUnit, findThreadedObserver, getCPUPercent, getCPUPercent, getHoverText, getLongestObserver, getPamObservers, getRequiredHistory, hasOptionsDialog, notifyObservers, notifyObservers, setChanged, setOverlayDraw, showOptions, waitForThreadedObservers
public RoccaContourDataBlock(PamProcess parentProcess, int channelMap)
public void calculateStatistics()
public void calculateClickStats()
public java.lang.String createContourStatsHeader()
public java.lang.String createContourStatsString()
public java.lang.String createContourStatsString(java.lang.String clipFile, int detectionCount)
clipFile
- String to be saved in the 'filename' columndetectionCount
- integer specifying the detection count (the count
starts at 1 when the first detection is captured)public java.lang.String createContourStatsString(java.lang.String clipFile, int detectionCount, java.lang.String sightNum)
clipFile
- String to be saved in the 'filename' columndetectionCount
- integer specifying the detection count (the count
starts at 1 when the first detection is captured)public java.io.File getWavFilename()
public java.lang.String getClassifiedAs()
public void setClassifiedAs(java.lang.String classifiedAs)
public boolean isStatsRun()
public void setStatsRun(boolean statsRun)
public double[] getTreeVotes()
public void setTreeVotes(double[] treeVotes)
public int getFirstUnitWithWhistle()
public void setFirstUnitWithWhistle(int firstUnitWithWhistle)
public int getLastUnitWithWhistle()
public void setLastUnitWithWhistle(int lastUnitWithWhistle)
public java.util.ArrayList<java.lang.String> getKeyNames()
public java.util.EnumMap<RoccaContourStats.ParamIndx,java.lang.Double> getContour()
public RoccaContourStats getRCS()
public PamRawDataBlock getPrdb()
public void setPrdb(PamRawDataBlock prdb)
prdb
- the prdb to setpublic ClickDetection getClickDetection()
public void setClickDetection(ClickDetection clickDetection)
clickDetection
- the clickDetection to setpublic ClickDetection getClickNoise()
public void setClickNoise(ClickDetection clickNoise)
clickNoise
- the clickNoise to setpublic double getStartTime()
public void setStartTime(double startTime)
startTime
- the startTime to set
serialVersionUID=15 2014/11/12