[Kst] kdeextragear-2/kst/kst

Barth Netterfield netterfield at astro.utoronto.ca
Wed Apr 28 21:19:33 CEST 2004


Are you limiting the psd to 65536 frequency bins?  If so, why?

cbn

On April 28, 2004 03:09 pm, Andrew Walker wrote:
> CVS commit by arwalker:
>
> The KstPSDCurve constructor is not expecting the length of FFT vector, but
> instead its log2(length).
>
>
>   M +5 -1      datawizard.ui.h   1.17
>
>
> --- kdeextragear-2/kst/kst/datawizard.ui.h  #1.16:1.17
> @@ -350,5 +351,8 @@ void DataWizard::finished()
>            name += "'";
>          }
> -        iLength = int(pow(2.0, int(ceil(log(double(xv->length())) /
> log(2))))); +        iLength = int(ceil(log(double(xv->length())) /
> log(2.0))); +        if( iLength > 16 ) {
> +          iLength = 16;
> +        }
>          KstBaseCurvePtr c = new KstPSDCurve(name, xv, 1.0, iLength, "",
> "", KstColorSequence::next()); if (_drawBoth->isChecked()) {
>
>
> _______________________________________________
> Kst mailing list
> Kst at kde.org
> https://mail.kde.org/mailman/listinfo/kst



More information about the Kst mailing list