org.ov4j.comp
Class StringComparisonResult

java.lang.Object
  extended by org.ov4j.comp.ComparisonResult<java.lang.String>
      extended by org.ov4j.comp.StringComparisonResult

public class StringComparisonResult
extends ComparisonResult<java.lang.String>

This class is used to compare 2 strings as character sequences.

Author:
smolloy

Constructor Summary
StringComparisonResult()
           
 
Method Summary
 void compute()
          Perform metric computation.
 void computeSimilitude()
          Compute the similitude.
 void fastCompute()
          Perform fast computation, only setting precision to 1.0 to indicate that both items are the same or to anything else otherwise.
 double getSimilitude()
           
 void setSimilitude(double similitude)
           
 
Methods inherited from class org.ov4j.comp.ComparisonResult
findComparisonResultClass, getChanged, getFalseNegatives, getFalsePositives, getMatches, getOriginal, getPrecision, getRecall, numFalseNegatives, numFalsePositives, numMatches, setChanged, setFalseNegatives, setFalsePositives, setMatches, setOriginal, setPrecision, setRecall
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StringComparisonResult

public StringComparisonResult()
Method Detail

compute

public void compute()
Description copied from class: ComparisonResult
Perform metric computation.

Specified by:
compute in class ComparisonResult<java.lang.String>
See Also:
ComparisonResult.compute()

computeSimilitude

public void computeSimilitude()
Compute the similitude.


fastCompute

public void fastCompute()
Description copied from class: ComparisonResult
Perform fast computation, only setting precision to 1.0 to indicate that both items are the same or to anything else otherwise.

Specified by:
fastCompute in class ComparisonResult<java.lang.String>
See Also:
ComparisonResult.fastCompute()

getSimilitude

public double getSimilitude()
Returns:
Returns the similitude.

setSimilitude

public void setSimilitude(double similitude)
Parameters:
similitude - The similitude to set.


Copyright © 2004-2007 Steve Molloy. All Rights Reserved.