net.sourceforge.javaocr.matcher
Class MetricMatcher

java.lang.Object
  extended by net.sourceforge.javaocr.matcher.MetricMatcher

public class MetricMatcher
extends Object

classifies supplied features

Author:
Konstantin Pribluda

Field Summary
(package private)  Map<Metric,Character> metrics
           
(package private)  Map<Metric,Double> red
           
(package private)  Map<Metric,Double> yellow
           
 
Constructor Summary
MetricMatcher()
           
 
Method Summary
 void addMetric(Metric metric, Character character, double yellow, double red)
          register metric for character with statistical parameters
 List<Match> classify(double[] features)
           
 List<MetricContainer> containers()
           
 Map<Metric,Character> getMetrics()
           
 Map<Metric,Double> getRed()
           
 Map<Metric,Double> getYellow()
           
 void setContainers(Collection<? extends MetricContainer> containers)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

metrics

Map<Metric,Character> metrics

yellow

Map<Metric,Double> yellow

red

Map<Metric,Double> red
Constructor Detail

MetricMatcher

public MetricMatcher()
Method Detail

addMetric

public void addMetric(Metric metric,
                      Character character,
                      double yellow,
                      double red)
register metric for character with statistical parameters

Parameters:
metric -
character -
yellow -
red -

classify

public List<Match> classify(double[] features)

getMetrics

public Map<Metric,Character> getMetrics()

getRed

public Map<Metric,Double> getRed()

getYellow

public Map<Metric,Double> getYellow()

containers

public List<MetricContainer> containers()

setContainers

public void setContainers(Collection<? extends MetricContainer> containers)


Copyright © -2012. All Rights Reserved.