Package org.encog.ml.hmm.alog

Examples of org.encog.ml.hmm.alog.ViterbiCalculator


    return this.stateDistributions[i];
  }

  @Override
  public int[] getStatesForSequence(final MLDataSet seq) {
    return (new ViterbiCalculator(seq, this)).stateSequence();
  }
View Full Code Here


  private boolean optimizeCluster(final HiddenMarkovModel hmm) {
    boolean modif = false;

    for (final MLDataSet obsSeq : this.sequnces.getSequences()) {
      final ViterbiCalculator vc = new ViterbiCalculator(obsSeq, hmm);
      final int states[] = vc.stateSequence();

      for (int i = 0; i < states.length; i++) {
        final MLDataPair o = obsSeq.get(i);

        if (this.clusters.cluster(o) != states[i]) {
View Full Code Here

TOP

Related Classes of org.encog.ml.hmm.alog.ViterbiCalculator

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.