Examples of OpdfInteger


Examples of be.ac.ulg.montefiore.run.jahmm.OpdfInteger

    if (nbEntries > 0 && probabilities.length != nbEntries)
      throw new FileFormatException(st.lineno(),
          "Invalid distribution (should " + "operate over 0..."
              + (nbEntries - 1) + ")");
   
    return new OpdfInteger(probabilities);
  }
View Full Code Here

Examples of be.ac.ulg.montefiore.run.jahmm.OpdfInteger

          sum += op[state][i];
        }
        throw new IllegalArgumentException("Observation probabilities of state " + taxo.getState(state) + " do not form a stochastic vector, they add up to "
            + sum);
      }
      this.setOpdf(state, new OpdfInteger(op[state]));
    }
    double opLast[] = new double[nOb];
    Arrays.fill(opLast, 0.0);
    opLast[nOb - 1] = 1.0;
    this.setOpdf(nSt - 1, new OpdfInteger(opLast));
  }
View Full Code Here

Examples of be.ac.ulg.montefiore.run.jahmm.OpdfInteger

      }
    }

    for (int state = 0; state < nSt; state++) {
      double[] emissionProbabilities = freqs.getEmissionProbabilities(state);
      setOpdf(state, new OpdfInteger(emissionProbabilities));
    }

  }
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.