// Generate a data set offset by 1/2 channel in frequency
for (j=0;j<N;j++)
data[j]=cos(2.0*pi*64.5*j/N);
sp2.adddataseg(data,square);
}
spec=sp2.spectrum();
freq=sp2.frequencies();
// for (i=0;i<10;i++)
// System.out.printf(spec[maxi-i]/maxs << " %f\n", spec[maxi+i+1]/maxs);
// test for symmetry