story.scheherazade.analysis
Class NWAlignment
java.lang.Object
story.scheherazade.analysis.NWAlignment
public class NWAlignment
- extends java.lang.Object
Perform Needleman-Wunch alignment on two stories.
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
GAP_PENALTY
public static final int GAP_PENALTY
- See Also:
- Constant Field Values
PATH_END
public static final int PATH_END
- See Also:
- Constant Field Values
PATH_VERTICAL_GAP
public static final int PATH_VERTICAL_GAP
- See Also:
- Constant Field Values
PATH_HORIZONTAL_GAP
public static final int PATH_HORIZONTAL_GAP
- See Also:
- Constant Field Values
PATH_MATCH
public static final int PATH_MATCH
- See Also:
- Constant Field Values
NWAlignment
public NWAlignment(double[][] scores,
int[][] paths,
java.util.Vector<SCHIntersection> story1,
java.util.Vector<SCHIntersection> story2)
throws Scheherexception
- Throws:
Scheherexception
render
public java.lang.StringBuffer render()
throws Scheherexception
- Throws:
Scheherexception
overallScore
public double overallScore()
alignNW
public static NWAlignment alignNW(int story1,
int story2,
java.util.Vector<SCHIntersection> index1,
java.util.Vector<SCHIntersection> index2,
SCHIntersection[][] pairwise)
throws Scheherexception
- Run a variation of the Needleman-Wunsch algorithm on two stories
- Throws:
Scheherexception
Copyright © 2011 David K. Elson. All Rights Reserved.