double period2 = dcdft.getTopHits().get(
PeriodAnalysisCoordinateType.PERIOD).get(1);
assertEquals("2.6828", String.format("%1.4f", period2));
List<Harmonic> harmonics = new ArrayList<Harmonic>();
harmonics.add(new Harmonic(freq1));
harmonics.add(new Harmonic(freq2));
// Specify the expected model parameters (generated by the model
// creation process).
List<PeriodFitParameters> expectedParams = new ArrayList<PeriodFitParameters>();
expectedParams.add(new PeriodFitParameters(new Harmonic(freq1),
0.1998, -0.1018, -0.1720, 3.9249, 2450446.0));
expectedParams.add(new PeriodFitParameters(new Harmonic(freq2),
0.0767, -0.0484, -0.0595, 3.9249, 2450446.0));
// Drum roll please...
commonTest(dcdft, harmonics, expectedParams,
TwoPeriodModelExpectedData.expectedModelData,