TrigonometricSeries { public static TrigonometricSeries regular(int periodicity) { int n = periodicity / 2; double[] freq = new double[n]; double f = 2.0 / periodicity; for (int i = 1; i <= n; ++i) { freq[i - 1] = f * i; } return new TrigonometricSeries(freq); } TrigonometricSeries(double[] freq); static TrigonometricSeries regular(int periodicity); static TrigonometricSeries regular(int periodicity, int[] seasfreq); static TrigonometricSeries all(double periodicity, int nfreq); Matrix matrix(int len); Matrix matrix(int start, int len);  }
@Test public void testRegular() { TrigonometricSeries regular = TrigonometricSeries.regular(12); Matrix matrix = regular.matrix(60); }