Package net.sourceforge.align.calculator.length.counter

Examples of net.sourceforge.align.calculator.length.counter.CharCounter


   * Constructs algorithm object. It is similar to Gale and Church algorithm
   * but based on Forward Backward method instead of Viterbi method.
   */
  @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


    if (ctr == null) {
      counter = null;
    } else if (ctr.equals("word")) {
      counter = new SplitCounter();
    } else if (ctr.equals("char")) {
      counter = new CharCounter();
    } else {
      throw new UnknownParameterException("counter");
    }
    return counter;
  }
View Full Code Here

   */
  private List<Alignment> lengthAlign(List<Alignment> alignmentList) {

    List<Filter> filterList = new ArrayList<Filter>();
   
    Counter counter = new CharCounter();
    Calculator calculator = new NormalDistributionCalculator(counter);
   
    HmmAlignAlgorithmFactory algorithmFactory =
      new ForwardBackwardAlgorithmFactory();
   
View Full Code Here

*/
public class GaleAndChurchMacro implements Macro {

  public List<Alignment> apply(List<Alignment> alignmentList) {
   
    Counter counter = new CharCounter();
    Calculator calculator = new NormalDistributionCalculator(counter);
   
    HmmAlignAlgorithmFactory algorithmFactory =
      new ViterbiAlgorithmFactory();
   
View Full Code Here

  /**
   * Constructs algorithm object. It is similar to Gale and Church algorithm.
   */
  @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.calculator.length.counter.CharCounter

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.