net.sourceforge.javaocr.matcher
Class Match

java.lang.Object
  extended by net.sourceforge.javaocr.matcher.Match
All Implemented Interfaces:
Comparable<Match>

public class Match
extends Object
implements Comparable<Match>

conrainer to encapsulate mathichg result, distance and quality thresholds.

Author:
Konstantin Pribluda

Field Summary
(package private)  Character chr
           
(package private)  double distance
           
(package private)  double red
           
(package private)  double yellow
           
 
Constructor Summary
Match()
           
Match(Character chr, double distance, double yellow, double red)
           
 
Method Summary
 int compareTo(Match o)
           
 Character getChr()
          mnatched character
 double getDistance()
          cgaracter distance provided by metric
 double getRed()
          threshold marking invalid match
 double getYellow()
          threshold marking problematic (low quality) match
 void setChr(Character chr)
           
 void setDistance(double distance)
           
 void setRed(double red)
           
 void setYellow(double yellow)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

distance

double distance

chr

Character chr

yellow

double yellow

red

double red
Constructor Detail

Match

public Match()

Match

public Match(Character chr,
             double distance,
             double yellow,
             double red)
Method Detail

getChr

public Character getChr()
mnatched character


setChr

public void setChr(Character chr)

getDistance

public double getDistance()
cgaracter distance provided by metric

Returns:

setDistance

public void setDistance(double distance)

getRed

public double getRed()
threshold marking invalid match

Returns:

setRed

public void setRed(double red)

getYellow

public double getYellow()
threshold marking problematic (low quality) match

Returns:

setYellow

public void setYellow(double yellow)

compareTo

public int compareTo(Match o)
Specified by:
compareTo in interface Comparable<Match>


Copyright © -2012. All Rights Reserved.