|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object match
public class match
match is the search engine of the recognizer
Field Summary | |
---|---|
double[] |
costRecord
array to store the associated cost for each template |
int[][] |
pathRecord
array to store the best path for each template |
int |
recogResult
|
double[] |
totalCost
array to store the total cost for the best path of each template |
Fields inherited from interface Constants |
---|
colortable, models, testsignals, words |
Constructor Summary | |
---|---|
match(dtwApplet dtwapp)
default class constructor |
Method Summary | |
---|---|
void |
bestMatch()
This method is used to recognize and compute the matching path between test signal and each template and find out the template with least cost |
int |
bestPathLength()
access method for getting length of the best path |
java.net.URL |
getAudioFile()
access method for getting URL of audio file |
java.lang.String |
getDistanceType()
access method for getting distance type |
java.net.URL |
getLpcURL()
access method for getting lpc URL |
java.net.URL |
getRawURL()
access method for getting the raw URL |
lpcData |
getReference()
access method for getting the lpcData reference |
lpcData |
getSignal()
access method for getting signal |
double |
getSlope()
access method to get slope |
void |
initTemplates()
method to load in the templates |
boolean |
lefttorightMatch()
the major method to compute the matching score between selected test signal and reference. |
void |
setAudioFile(java.net.URL a)
access method for setting URL of audio file |
void |
setDistance(java.lang.String a)
access method for setting distance type |
void |
setMenu(MainMenu menu)
access method for setting main menu |
void |
setReference(int k)
access method for setting the reference with an index |
void |
setReference(java.net.URL url)
access method for setting the reference with URL |
void |
setRefIndex(int a)
access method for set reference index |
void |
setSignal(int k)
correct the datapath to match each case of speech sound |
void |
setSignal(java.net.URL url)
access method for setting the signal with a URL |
void |
setSlope(double a)
access method to set slope |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public int recogResult
public int[][] pathRecord
public double[] costRecord
public double[] totalCost
Constructor Detail |
---|
public match(dtwApplet dtwapp)
dtwapp
- applet object instantiatedMethod Detail |
---|
public void initTemplates()
java.net.MalformedURLException
- if applet codebase cannot be initilizedpublic void setSlope(double a)
a
- double value of slope to be setpublic double getSlope()
public void setDistance(java.lang.String a)
a
- String value of distance type to be setpublic java.lang.String getDistanceType()
public int bestPathLength()
public void setRefIndex(int a)
a
- index to setpublic lpcData getSignal()
public java.net.URL getLpcURL()
public java.net.URL getRawURL()
public java.net.URL getAudioFile()
public void setAudioFile(java.net.URL a)
a
- URL to setpublic lpcData getReference()
public void setReference(java.net.URL url)
url
- URL of reference to setpublic void setReference(int k)
k
- integer value of index to template arraypublic void setSignal(java.net.URL url)
url
- URL of signalpublic void setSignal(int k)
k
- index of signal to setpublic boolean lefttorightMatch()
public void bestMatch()
public void setMenu(MainMenu menu)
menu
- MainMenu object to set
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |