userSelectedFreqs.add(1.0);
}
Map<Double, List<Harmonic>> freqToHarmonicsMap = new HashMap<Double, List<Harmonic>>();
HarmonicInputDialog dialog = new HarmonicInputDialog(
DocumentManager.findActiveWindow(), userSelectedFreqs,
freqToHarmonicsMap);
if (!dialog.isCancelled()) {
List<Harmonic> harmonics = dialog.getHarmonics();
if (!harmonics.isEmpty()) {
IPeriodAnalysisAlgorithm algorithm = new TSDcDft(obs);
model = new PeriodAnalysisDerivedMultiPeriodicModel(
harmonics, algorithm);