double currentMean = Math.min(finalMean, i * step + startMean);
features[i] = currentMean + random.nextGaussian() * stdDev;
}
// When
AdaptiveStreamFeatureStatistics statistics = new AdaptiveStreamFeatureStatistics(1000);
for (int i = 0; i < size; i++) {
statistics.update(features[i]);
}
// Then
assertEquals(finalMean, statistics.getMean(), 0.35);
assertEquals(stdDev, statistics.getStdDev(), 0.35);
}