[Kst] [Bug 115450] More normalisation options for power spectrum

Andrew Walker arwalker at sumusltd.com
Sun Mar 26 05:33:47 CEST 2006


------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
         
http://bugs.kde.org/show_bug.cgi?id=115450         




------- Additional Comments From arwalker sumusltd com  2006-03-26 05:33 -------
> Marc-Antoine Miville-Deschenes:
> Could somebody tell me what is the "default" apodization function
> we use for PSDs in KST ?

The "default" apodisation does not appear to be a standard one (at least to me). Here is the code:

for (i = 0; i < len; i++) {
  _w[i] = (1 - cos(2*M_PI*double(i)/double(len)));
  sW += _w[i] * _w[i];
}
sW = sqrt(sW/double(len));
for (i = 0; i < len; i++) {
  _w[i] /= sW;
}


More information about the Kst mailing list