ABL4J (Alignment Based Learning for Java) - 0.9.7

org.schwiebert.abl4j.distance
Class EditOperation.SubDis

java.lang.Object
  extended by org.schwiebert.abl4j.distance.EditOperation.Substitute
      extended by org.schwiebert.abl4j.distance.EditOperation.SubDis
All Implemented Interfaces:
EditOperation
Enclosing interface:
EditOperation

public static final class EditOperation.SubDis
extends EditOperation.Substitute
implements EditOperation


Nested Class Summary
 
Nested classes/interfaces inherited from interface org.schwiebert.abl4j.distance.EditOperation
EditOperation.Biased, EditOperation.Default, EditOperation.Delete, EditOperation.Insert, EditOperation.SubDis, EditOperation.Substitute
 
Field Summary
private  int len1
           
private  int len2
           
 
Fields inherited from class org.schwiebert.abl4j.distance.EditOperation.Substitute
begin1, begin2, end1, end2, sentence1, sentence2
 
Constructor Summary
EditOperation.SubDis(ISentence s1, int b1, int e1, ISentence s2, int b2, int e2)
           
 
Method Summary
 Pair<Float,EditOperation> gamma(Pair<Integer,Integer> pair)
          mat=((index_S/|S|)-(index_T/|T|))*mean(|S|,|T|)
 
Methods inherited from class org.schwiebert.abl4j.distance.EditOperation.Substitute
match, nextCoordinates, previousCoordinates
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.schwiebert.abl4j.distance.EditOperation
nextCoordinates, previousCoordinates
 

Field Detail

len1

private int len1

len2

private int len2
Constructor Detail

EditOperation.SubDis

public EditOperation.SubDis(ISentence s1,
                            int b1,
                            int e1,
                            ISentence s2,
                            int b2,
                            int e2)
Method Detail

gamma

public Pair<Float,EditOperation> gamma(Pair<Integer,Integer> pair)
mat=((index_S/|S|)-(index_T/|T|))*mean(|S|,|T|)

Specified by:
gamma in interface EditOperation
Overrides:
gamma in class EditOperation.Substitute

ABL4J (Alignment Based Learning for Java) - 0.9.7

© 2007 Stephan Schwiebert