@Test
public void testCorrectnessForDistanceCalculation2() {

	// Input.
	double[] queryTimeSeries = { 1, 1, 2, 2, 3, 5, 3 };
	double[] sampleTimeSeries = { 1, 2, 3, 5, 5, 7 };
	// Expected output.
	double expectation = .635109;
	int windowLength = 3;
	boolean meanNormalization = false;
	ShotgunDistance shotgunDistance = new ShotgunDistance(windowLength, meanNormalization);
	double distance = shotgunDistance.distance(queryTimeSeries, sampleTimeSeries);
	assertEquals(expectation, distance, 1e-5);
}