public class LLRSceneMetric extends Object implements SceneMetric
# of incorrect terminals / total # of terminals
Constructor and Description |
---|
LLRSceneMetric() |
Modifier and Type | Method and Description |
---|---|
double |
apply(Scene db1,
Scene db2)
Return a similarity metric based only on the LLR (terminal)
values of the test and reference databases:
|
String |
getName()
The name of this metric is "llr"
|
public String getName()
getName
in interface SceneMetric
public double apply(Scene db1, Scene db2)
# of incorrect terminals / total # of terminalsAssumes that the two scenes are composed of the same number of strokes in the same order.
apply
in interface SceneMetric
IllegalArgumentException
- If the scene is empty,
if the two scenes have different numbers of strokes, or
if either scene does not have a root that covers all of
its strokes.Copyright © 2025 Central Laboratory of the Research Councils. All Rights Reserved.