@Ignore("This is just for data generation so we can compare the Java results in Python")
@Test
public void stlDataFactory() {

	double[] data = testDataGenerator.createNoisySeasonalDataWithTimeSeed(144, 12, 10.0, 1.0, 2.0);
	SeasonalTrendLoess.Builder builder = new SeasonalTrendLoess.Builder().setPeriodLength(12).setSeasonalWidth(7).setNonRobust();
	SeasonalTrendLoess smoother = builder.buildSmoother(data);
	SeasonalTrendLoess.Decomposition stl = smoother.decompose();
	double[] residuals = stl.getResidual();
	double rsum = 0.0;
	double r2sum = 0.0;
	for (int i = 0; i < data.length; ++i) {
		double r = residuals[i];
		rsum += r;
		r2sum += r * r;
	}
	double mean = rsum / data.length;
	double variance = (r2sum - rsum * rsum) / (data.length - 1);
	System.out.println(String.format("Residual has mean %f and variance %f", mean, variance));
	// dumpStlResultsToFile(data, stl, "/tmp/stl_test.csv");
}