Package net.sourceforge.align.matrix

Examples of net.sourceforge.align.matrix.MatrixFactory


    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


   */
  @Before
  public void setUp() {
    Counter counter = new CharCounter();
    Calculator calculator = new NormalDistributionCalculator(counter);
    MatrixFactory matrixFactory = new FullMatrixFactory();
   
    algorithm = new ForwardBackwardAlgorithm(calculator,
        CategoryDefaults.BEST_CATEGORY_MAP, matrixFactory);
  }
View Full Code Here

      String search = commandLine.getOptionValue('s');
      if (search == null) {
        throw new MissingParameterException("search");
      }
      if (search.equals("exhaustive") || search.equals("band")) {
        MatrixFactory matrixFactory;
        if (search.equals("exhaustive")) {
          matrixFactory = new FullMatrixFactory();
        } else if (search.equals("band")) {
          int radius = createInt(commandLine, "radius",
              BandMatrixFactory.DEFAULT_BAND_RADIUS);
View Full Code Here

   */
  @Before
  public void setUp() {
    Counter counter = new CharCounter();
    Calculator calculator = new NormalDistributionCalculator(counter);
    MatrixFactory matrixFactory = new FullMatrixFactory();
   
    algorithm = new ViterbiAlgorithm(calculator,
        CategoryDefaults.BEST_CATEGORY_MAP, matrixFactory);
  }
View Full Code Here

TOP

Related Classes of net.sourceforge.align.matrix.MatrixFactory

Copyright © 2018 www.massapicom. 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.