Examples of BandMatrixFactory


Examples of net.sourceforge.align.matrix.BandMatrixFactory

    int maxAlignmentRadius = (int)bandRadius + 1;
    List<Alignment> alignmentList = null;
   
    while((maxAlignmentRadius + minBandMargin) > bandRadius) {
      bandRadius *= bandIncrementRatio;
      MatrixFactory matrixFactory = new BandMatrixFactory((int)bandRadius);
      AlignAlgorithm algorithm = algorithmFactory.createAlignAlgorithm(
          calculator, categoryMap, matrixFactory);
      alignmentList = algorithm.align(sourceSegmentList,
          targetSegmentList);
      maxAlignmentRadius = calculateMaxAlignmentRadius(alignmentList,
View Full Code Here

Examples of net.sourceforge.align.matrix.BandMatrixFactory

        if (search.equals("exhaustive")) {
          matrixFactory = new FullMatrixFactory();
        } else if (search.equals("band")) {
          int radius = createInt(commandLine, "radius",
              BandMatrixFactory.DEFAULT_BAND_RADIUS);
          matrixFactory = new BandMatrixFactory(radius);
        } else {
          throw new UnknownParameterException("search");
        }
        if (cls.equals("viterbi")) {
          algorithm = new ViterbiAlgorithm(calculator,
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.