// Test Slepian
System.out.println("Testing Slepian");
Slepian slep=new Slepian(M,3,1);
for (i=0;i<K;i++) {
// Generate a data set
for (j=0;j<N;j++)
data[j]=10.0*exp(-1.*SQR(j-M)/SQR(N/8))*
(cos(2.0*pi*32*j/N)+cos(2.0*pi*64*j/N));
slep.adddataseg(data); // Note: text should clarify this usage
}
spec=slep.spectrum();
freq=slep.frequencies();
freq1=32.0/N;
freq2=64.0/N;
// System.out.printf(setprecision(6);