Package com.github.pmerienne.trident.ml.stats

Examples of com.github.pmerienne.trident.ml.stats.FixedStreamFeatureStatistics


    for (int i = 0; i < size; i++) {
      features[i] = expectedMean + random.nextGaussian() * stdDev;
    }

    // When
    FixedStreamFeatureStatistics statistics = new FixedStreamFeatureStatistics();
    for (int i = 0; i < size; i++) {
      statistics.update(features[i]);
    }

    // Then
    assertEquals(expectedMean, statistics.getMean(), 0.1);
    assertEquals(stdDev, statistics.getStdDev(), 0.1);
  }
View Full Code Here

TOP

Related Classes of com.github.pmerienne.trident.ml.stats.FixedStreamFeatureStatistics

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.