public class VotingSceneRecognizer extends Object implements SceneRecognizer
VotingStrokeRecognizer
Modifier and Type | Field and Description |
---|---|
static int |
ALL_VOTES
A constant which says that votes are not filtered
by the "n-highest" rule.
|
Constructor and Description |
---|
VotingSceneRecognizer(SceneRecognizer[] children)
Construct a voting recognizer with the following
child recognizers.
|
Modifier and Type | Method and Description |
---|---|
List |
children()
Return the children as a list.
|
void |
clearBuffer()
Clear the buffer after every stroke finishes by
setting every entry in the buffer to NO_DELTA.
|
double |
getMinConfidence()
Return the minimum confidence value which is necessary
for a type to get considered in the vote.
|
int |
getNHighest()
Return the "n-highest" value, which says that the n-highest
classifications will get passed on when the child recognizers
vote.
|
SceneDeltaSet |
sessionCompleted(StrokeElement[] session,
Scene db)
Pass the event to the child recognizers, tally the vote,
clear the buffer, and return the consensus.
|
void |
setMinConfidence(double val)
Set the minimum confidence classifications that will get passed
on when the child recognizers vote.
|
void |
setNHighest(int n)
Set the "n-highest" value, which says that the n-highest
classifications will get passed on when the child recognizers
vote.
|
SceneDeltaSet |
strokeCompleted(StrokeElement s,
Scene db)
Pass the event to the child recognizers, tally the vote,
clear the buffer, and return the consensus.
|
SceneDeltaSet |
strokeModified(StrokeElement s,
Scene db)
Pass the event to the child recognizers, tally the vote,
and return the consensus.
|
SceneDeltaSet |
strokeStarted(StrokeElement s,
Scene db)
Pass the event to the child recognizers, tally the vote,
and return the consensus.
|
protected SceneDeltaSet |
vote()
Tally all of the votes of the sub-recognizers and emit them all
into a recognition.
|
public static int ALL_VOTES
setNHighest(int)
public VotingSceneRecognizer(SceneRecognizer[] children)
public void clearBuffer()
public List children()
public double getMinConfidence()
public int getNHighest()
public void setMinConfidence(double val)
public void setNHighest(int n)
public SceneDeltaSet sessionCompleted(StrokeElement[] session, Scene db)
sessionCompleted
in interface SceneRecognizer
public SceneDeltaSet strokeCompleted(StrokeElement s, Scene db)
strokeCompleted
in interface SceneRecognizer
public SceneDeltaSet strokeModified(StrokeElement s, Scene db)
strokeModified
in interface SceneRecognizer
public SceneDeltaSet strokeStarted(StrokeElement s, Scene db)
strokeStarted
in interface SceneRecognizer
protected SceneDeltaSet vote()
getNHighest()
,
getMinConfidence()
Copyright © 2024 Central Laboratory of the Research Councils. All Rights Reserved.