|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.util.Observable
ncsa.d2k.core.modules.RootModule
ncsa.d2k.core.modules.ConfigurableModule
ncsa.d2k.core.modules.EmbeddedPipeModule
ncsa.d2k.core.modules.ExecModule
ncsa.d2k.core.modules.ComputeModule
org.imirsel.m2k.evaluation.OnsetDetectionEvaluator
This module evaluates onset detection algorithms based on a tolerance parameter. Input is a null terminated stream of Signal objects with "Onset times" meta-data, to be used as the ground-truth, and another stream of Signal objects with an "Onset times" meta-data to be tested for accuracy. The F-measure of the onset detector is returned. Finally, the serialized Signal arrays and the text result files are copied to a directory, specified as a parameter, for McNemar's testing by another module.
| Field Summary |
| Fields inherited from class ncsa.d2k.core.modules.ConfigurableModule |
addedInputInfo, addedInputNames, addedInputTypes, addedOutputInfo, addedOutputNames, addedOutputTypes, addPortListeners |
| Fields inherited from class ncsa.d2k.core.modules.RootModule |
alias, children, DEBUG_LEVEL, EMPTY_INPUT, ERROR_LEVEL, executionManager, FATAL_LEVEL, HAVE_INPUT, INFO_LEVEL, iPipes, iPipesIndex, iTriggers, oPipes, oPipesIndex, oTriggers, parents, pipesFullManager, stats, triggerChildren, triggerParents, WARN_LEVEL |
| Fields inherited from interface ncsa.d2k.core.modules.SystemModule |
BLOCKED_STATE, IDLE_STATE, MEDIUM, MEDIUM_RARE, MEDIUM_WELL, RARE, READY_STATE, WELL, WORKING_STATE |
| Constructor Summary | |
OnsetDetectionEvaluator()
|
|
| Method Summary | |
void |
beginExecution()
Performs operations at the beginning of itinerary execution. |
void |
doit()
This module evaluates onset detection algorithms based on a tolerance parameter. |
void |
endExecution()
Performs operations at the end of itinerary execution. |
java.lang.String |
getCopyToDirectory()
Returns the value of CopyToDirectory |
java.lang.String |
getDetectorName()
Returns the value of detectorName |
java.lang.String |
getInputInfo(int i)
Returns a text description for the indicated input. |
java.lang.String |
getInputName(int i)
Returns a text name for the given input. |
java.lang.String[] |
getInputTypes()
Returns an array of strings containing the Java data types of the input. |
java.lang.String |
getModuleInfo()
Returns information about the module. |
java.lang.String |
getModuleName()
Returns the name of the module. |
java.lang.String |
getOutputInfo(int i)
Returns a text description for the given output. |
java.lang.String |
getOutputName(int i)
Returns a text name for the given output. |
java.lang.String[] |
getOutputTypes()
Returns an array of strings containing the Java data types of the outputs. |
ncsa.d2k.core.modules.PropertyDescription[] |
getPropertiesDescriptions()
Returns an array of description objects for each property of the Module. |
double |
getTolerance()
Returns the value of tolerance |
boolean |
getVerbose()
Returns the value of the verbose output flag |
boolean |
isReady()
Returns a boolean indicating if the module is ready to execute or not. |
void |
setCopyToDirectory(java.lang.String value)
Sets the value of CopyToDirectory |
void |
setDetectorName(java.lang.String value)
Sets the value of detectorName |
void |
setTolerance(double value)
Sets the value of the tolerance parameter |
void |
setVerbose(boolean value)
Sets the value of the verbose output flag |
| Methods inherited from class ncsa.d2k.core.modules.ExecModule |
execute, setExecutionManager |
| Methods inherited from class ncsa.d2k.core.modules.ConfigurableModule |
addAddPortListener, addInput, addInputTrigger, addOutput, addOutputTrigger, getAddedInputTypes, getAddedOutputTypes, getAddPortListeners, insertInput, insertOutput, removeAddPortListener, removeInput, removeInputTrigger, removeOutput, removeOutputTrigger, setAddedInputTypes, setInputType, setOutputType |
| Methods inherited from class ncsa.d2k.core.modules.RootModule |
activateTriggers, begin, canRun, clone, debug, debug, disconnectInputPipe, disconnectInputTriggers, disconnectOutputPipe, disconnectOutputTriggers, end, error, error, fatal, fatal, fetchInputs, getAlias, getChildIndex, getChildMux, getChildren, getExecutionManager, getFile, getFlags, getFullPipeManager, getGuiComponent, getImage, getInputPipes, getInputPipeSize, getInputTriggers, getModuleStatistics, getNumInputs, getNumOutputs, getOutputCounts, getOutputPipes, getOutputPipeSize, getOutputTriggers, getParentIndex, getParentMux, getParents, getPipesFull, getPriority, getPropertyEditor, getResource, getRootName, getState, info, info, initModule, isAborting, isHead, isInputPipeConnected, isOutputPipeConnected, pullInput, pushOutput, resetInputs, setAlias, setBlocked, setD2KModulesLoggingLevel, setFlags, setFullPipeManager, setIdle, setInputPipe, setLogLevel, setModuleStatistics, setModuleStatisticsByMachine, setOutputCounts, setOutputPipe, setPipesFull, setReady, setResource, setState, setThePriority, setWorking, trigger, triggersActivated, warn, warn |
| Methods inherited from class java.util.Observable |
addObserver, clearChanged, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, notifyObservers, setChanged |
| Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public OnsetDetectionEvaluator()
| Method Detail |
public void setVerbose(boolean value)
value - the value which verbose is set to#verbosepublic boolean getVerbose()
#verbosepublic void setTolerance(double value)
value - the value which tolerance is set to#tolerancepublic double getTolerance()
#tolerancepublic void setCopyToDirectory(java.lang.String value)
value - the value which CopyToDirectory is set topublic java.lang.String getCopyToDirectory()
public void setDetectorName(java.lang.String value)
value - the value which detectorName is set to#detectorNamepublic java.lang.String getDetectorName()
#detectorNamepublic ncsa.d2k.core.modules.PropertyDescription[] getPropertiesDescriptions()
public java.lang.String getModuleName()
public java.lang.String getModuleInfo()
public java.lang.String getInputName(int i)
i - the index of the input
public java.lang.String getInputInfo(int i)
i - the index of the input
public java.lang.String[] getInputTypes()
public java.lang.String getOutputName(int i)
i - the index of the output
public java.lang.String getOutputInfo(int i)
i - the index of the output
public java.lang.String[] getOutputTypes()
public void beginExecution()
endExecution()public void endExecution()
beginExecution()public boolean isReady()
public void doit()
throws java.lang.Exception,
noMetadataException
noMetadataException - Thrown if the module tries to access metadata that a Signal object does not contain, usually indicates mis-use of a module.
java.lang.Exception
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||