Examples of FloatData


Examples of edu.cmu.sphinx.frontend.FloatData

        float var = 3;

        MixtureComponent gaussian = new MixtureComponent(new float[]{mean}, new float[]{var});

        for (float curX = minX; curX <= maxX; curX += resolution) {
            double gauLogScore = gaussian.getScore(new FloatData(new float[]{curX}, 16000, 0));

            double manualScore = (1 / sqrt(var * 2 * PI)) * exp((-0.5 / var) * (curX - mean) * (curX - mean));
            double gauScore = LogMath.getLogMath().logToLinear((float) gauLogScore);

            Assert.assertEquals(manualScore, gauScore, 1E-5);
View Full Code Here

Examples of edu.cmu.sphinx.frontend.FloatData

    if (token == null)
      throw new Exception("Best token not found!");

    do {
      FloatData feature = (FloatData) token.getData();
      SearchState ss = token.getSearchState();

      if (!(ss instanceof HMMSearchState && ss.isEmitting())) {
        token = token.getPredecessor();
        continue;
View Full Code Here

Examples of edu.cmu.sphinx.frontend.FloatData

        for (int i = 0; i < values.length; i++) {
            floatData[i] = (float) values[i];
        }
//        System.arraycopy(data.getValues(), 0, floatData, 0, numSamples);

        return new FloatData(floatData, data.getSampleRate(), data.getFirstSampleNumber());
    }
View Full Code Here

Examples of net.sf.laja.template.data.FloatData

    return new BooleanData();
  }

  @Override
  public IFloatData createFloatData() {
    return new FloatData();
  }
View Full Code Here

Examples of uk.org.ogsadai.data.FloatData

        {
            return new DataValue[] {new DoubleData((Double)object)};
        }
        else if (object instanceof Float)
        {
            return new DataValue[] {new FloatData((Float)object)};
        }
        else if (object instanceof Boolean)
        {
            return new DataValue[] {new BooleanData((Boolean)object)};
        }
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.