src/main/java/eu/digitisation/distance/EditSequence.java
public BiCounter<Character, EdOp> stats(String s1, String s2) {
        BiCounter<Character, EdOp> stats = new BiCounter<Character, EdOp>();
        int n1 = 0;
        int n2 = 0;
        for (EdOp op : ops) {
            if (op != EdOp.INSERT) {
                stats.inc(s1.charAt(n1), op);
                ++n1;
            } else {
                stats.inc(s2.charAt(n2), EdOp.INSERT);
            }
            if (op != EdOp.DELETE) {
                ++n2;
            }
        }
        return stats;
    }
/**
     * Extract alignment statistics
     *
     * @param s1 the source string
     * @param s2 the target string
     * @return the statistics on the number of edit operations (per character
     * and type of operation)
     */
Extract alignment statistics
@param s1 the source string
@param s2 the target string
@return the statistics on the number of edit operations (per character
and type of operation)
Extract alignment statistics @param s1 the source string @param s2 the target string @return the statistics on the number of edit operations ( per character and type of operation )
public BiCounter<Character, EdOp> stats(String s1, String s2) {
        BiCounter<Character, EdOp> stats = new BiCounter<Character, EdOp>();
        int n1 = 0;
        int n2 = 0;
        for (EdOp op : ops) {
            if (op != EdOp.INSERT) {
                stats.inc(s1.charAt(n1), op);
                ++n1;
            } else {
                stats.inc(s2.charAt(n2), EdOp.INSERT);
            }
            if (op != EdOp.DELETE) {
                ++n2;
            }
        }
        return stats;
    }
public BiCounter < Character , EdOp > stats ( String s1 , String s2 ) { BiCounter < Character , EdOp > stats = new BiCounter < Character , EdOp > ( ) ; int n1 = 0 ; int n2 = 0 ; for ( EdOp op : ops ) { if ( op != EdOp . INSERT ) { stats . inc ( s1 . charAt ( n1 ) , op ) ; ++ n1 ; } else { stats . inc ( s2 . charAt ( n2 ) , EdOp . INSERT ) ; } if ( op != EdOp . DELETE ) { ++ n2 ; } } return stats ; }
Extract alignment statistics
 @param s1 the source string
 @param s2 the target string
 @return the statistics on the number of edit operations (per character
 and type of operation)
Extract alignment statistics @param s1 the source string @param s2 the target string @return the statistics on the number of edit operations ( per character and type of operation )