- sclfiltr [c+]
[..] La fonction [scl] buttercezscl 
Code
int buttercez_xpl(){
scltracefa(§, ƒ, ∅);
scltracefc("scl-%s (%s, %s) : %s\n\n", sclver(), sclsec(), sclver_cc(), temps_char(0));
int ichk, ierr=-1;
int vn = (int)107, vi;
double dvn = (double)vn;
// Dyadic correction
vn = (int)pow(2, round(ln(dvn)/ln(2)));
double dtechn=pow(2, 10);
int techn=(int)dtechn;
double fe_hz = 1;
//---------------------------------------------------------------------
//[>RANDN]
//---------------------------------------------------------------------
int seed=0; double σ=1;
double *sr=new double[vn], *sj=new double[vn];
randn(vn, seed, σ, sr, sj); //🎲
for (vi=0;vi<vn;vi++){ sj[vi] = 0; /*signal réel!*/ }
double *freq=new double[techn], *spsd=new double[techn];
ichk = periodogramme(vn, sr, sj, techn, fe_hz, freq, spsd);
double spsdmean = moy(techn, spsd);
double spsdc = spsdmean - 3;
//---------------------------------------------------------------------
//[<RANDN]
//---------------------------------------------------------------------
// Cut-off frequencies
double fca_hz=0.2*fe_hz, freqbc=fca_hz/fe_hz;
double fce_hz=0.3*fe_hz, freqhc=fce_hz/fe_hz;
double *a=new double[13], *b=new double[13];
double *fs = new double[vn], *z = new double[vn];
//---------------------------------------------------------------------
//[>FILTER & SPECTRUM]
//---------------------------------------------------------------------
int on=1, oo=2*on+1;
buttercez(on, fca_hz, fce_hz, fe_hz, a, b);
scltracefc("Butterworth band stop filter (order %d)\n", on);
scltracefc(" a: ");
/*tracetab<double>(std::cout, oo, a); std::cout<<std::endl;*/
scltracetb(0, oo, a, "%lf"); scltracef("\n");
scltracefc(" b: ");
/*tracetab<double>(std::cout, oo, b); std::cout<<std::endl;*/
scltracetb(0, oo, b, "%lf"); scltracef("\n");
filtrz(vn, sr, oo, a, oo, b, fs, z);
double *f1spsd=newtab<double>(techn, 0);
ichk = periodogramme(vn, fs, sj, techn, fe_hz, freq, f1spsd);
//---------------------------------------------------------------------
on=2; oo=2*on+1;
buttercez(on, fca_hz, fce_hz, fe_hz, a, b);
scltracefc("Butterworth band stop filter (order %d)\n", on);
scltracefc(" a: ");
/*tracetab<double>(std::cout, oo, a); std::cout<<std::endl;*/
scltracetb(0, oo, a, "%lf"); scltracef("\n");
scltracefc(" b: ");
/*tracetab<double>(std::cout, oo, b); std::cout<<std::endl;*/
scltracetb(0, oo, b, "%lf"); scltracef("\n");
filtrz(vn, sr, oo, a, oo, b, fs, z);
double *f2spsd=newtab<double>(techn, 0);
ichk = periodogramme(vn, fs, sj, techn, fe_hz, freq, f2spsd);
//---------------------------------------------------------------------
on=3; oo=2*on+1;
buttercez(on, fca_hz, fce_hz, fe_hz, a, b);
scltracefc("Butterworth band stop filter (order %d)\n", on);
scltracefc(" a: ");
/*tracetab<double>(std::cout, oo, a); std::cout<<std::endl;*/
scltracetb(0, oo, a, "%lf"); scltracef("\n");
scltracefc(" b: ");
/*tracetab<double>(std::cout, oo, b); std::cout<<std::endl;*/
scltracetb(0, oo, b, "%lf"); scltracef("\n");
filtrz(vn, sr, oo, a, oo, b, fs, z);
double *f3spsd=newtab<double>(techn, 0);
ichk = periodogramme(vn, fs, sj, techn, fe_hz, freq, f3spsd);
//---------------------------------------------------------------------
on=4; oo=2*on+1;
buttercez(on, fca_hz, fce_hz, fe_hz, a, b);
scltracefc("Butterworth band stop filter (order %d)\n", on);
scltracefc(" a: ");
/*tracetab<double>(std::cout, oo, a); std::cout<<std::endl;*/
scltracetb(0, oo, a, "%lf"); scltracef("\n");
scltracefc(" b: ");
/*tracetab<double>(std::cout, oo, b); std::cout<<std::endl;*/
scltracetb(0, oo, b, "%lf"); scltracef("\n");
filtrz(vn, sr, oo, a, oo, b, fs, z);
double *f4spsd=newtab<double>(techn, 0);
ichk = periodogramme(vn, fs, sj, techn, fe_hz, freq, f4spsd);
//---------------------------------------------------------------------
on=5; oo=2*on+1;
buttercez(on, fca_hz, fce_hz, fe_hz, a, b);
scltracefc("Butterworth band stop filter (order %d)\n", on);
scltracefc(" a: ");
/*tracetab<double>(std::cout, oo, a); std::cout<<std::endl;*/
scltracetb(0, oo, a, "%lf"); scltracef("\n");
scltracefc(" b: ");
/*tracetab<double>(std::cout, oo, b); std::cout<<std::endl;*/
scltracetb(0, oo, b, "%lf"); scltracef("\n");
filtrz(vn, sr, oo, a, oo, b, fs, z);
double *f5spsd=newtab<double>(techn, 0);
ichk = periodogramme(vn, fs, sj, techn, fe_hz, freq, f5spsd);
//---------------------------------------------------------------------
on=6; oo=2*on+1; double don=(double)on;
buttercez(on, fca_hz, fce_hz, fe_hz, a, b);
scltracefc("Butterworth band stop filter (order %d)\n", on);
scltracefc(" a: ");
/*tracetab<double>(std::cout, oo, a); std::cout<<std::endl;*/
scltracetb(0, oo, a, "%lf"); scltracef("\n");
scltracefc(" b: ");
/*tracetab<double>(std::cout, oo, b); std::cout<<std::endl;*/
scltracetb(0, oo, b, "%lf"); scltracef("\n");
filtrz(vn, sr, oo, a, oo, b, fs, z);
double *f6spsd=newtab<double>(techn, 0);
ichk = periodogramme(vn, fs, sj, techn, fe_hz, freq, f6spsd);
//---------------------------------------------------------------------
//[<FILTER & SPECTRUM]
//---------------------------------------------------------------------
//---------------------------------------------------------------------
//[>RÉPONSE THÉORIQUE]
//---------------------------------------------------------------------
// Pulsations de coupure echantillonnees
double wca_z=2*π*fca_hz, wce_z=2*π*fce_hz;
// Pulsations de coupure continues
double wca_p = 2*fe_hz*tan(wca_z/(2*fe_hz));
double wce_p = 2*fe_hz*tan(wce_z/(2*fe_hz));
// Frequences de coupure continues
double fca_p=wca_p/(2*π), fce_p=wce_p/(2*π);
double Ha=-6, Kna=pow(pow(10, -Ha/10)-1, 1/(2*don));
double fcd_p = fce_p - fca_p;
double D=fcd_p*fcd_p+4*Kna*Kna*fca_p*fce_p, sqrD=√(D);
// Reponse theorique ordre 6 - seuil 6 dB
double fa=-(fcd_p-sqrD)/(2*Kna), fe=(fcd_p+sqrD)/(2*Kna);
int fn=251, fi;
double **f=newmat<double>(3, fn), **H=newmat<double>(3, fn);
int *mn = newtab<int>(3, fn);
// Points de frequence continue
newtabfpz(fn,-103*fe_hz,-fe, fe_hz, f[0]); // regulier en freq echantillonnee
newtablin(fn,-fa , fa, f[1]);
newtabfpz(fn, fe, 103*fe_hz, fe_hz, f[2]); // regulier en freq echantillonnee
// Reponse continue
buttercef(fn, f[0], on, fca_p, fce_p, H[0]);
buttercef(fn, f[1], on, fca_p, fce_p, H[1]);
buttercef(fn, f[2], on, fca_p, fce_p, H[2]);
double wp0, wp1, wp2, wz0, wz1, wz2, cH0, cH1, cH2;
for(fi=0;fi<fn;fi++){
cH0=H[0][fi]; cH1=H[1][fi]; cH2=H[2][fi];
// Retour aux frequences echantillonnees
wp0=2*π*f[0][fi];
wp1=2*π*f[1][fi];
wp2=2*π*f[2][fi];
wz0=2*fe_hz*tan-1(wp0/(2*fe_hz));
wz1=2*fe_hz*tan-1(wp1/(2*fe_hz));
wz2=2*fe_hz*tan-1(wp2/(2*fe_hz));
f[0][fi]=wz0/(2*π);
f[1][fi]=wz1/(2*π);
f[2][fi]=wz2/(2*π);
// Passage log-puissance
H[0][fi]=10*log10(cH0*cH0);
H[1][fi]=10*log10(cH1*cH1);
H[2][fi]=10*log10(cH2*cH2);
}
//scltracefc("f[0] : "); tracetab<double>(cout,fn,f[0]); cout<<std::endl;
//---------------------------------------------------------------------
//[<RÉPONSE THÉORIQUE]
//---------------------------------------------------------------------
std::string imgname=std::string(ƒ)+".svg", imgpath="./srt/"+imgname;
ichk = graf_dis(imgpath.c_str(), techn, freq, spsd,
"curve", techn, freq, f1spsd,
"curve", techn, freq, f2spsd,
"curve", techn, freq, f3spsd,
"curve", techn, freq, f4spsd,
"curve", techn, freq, f5spsd,
"curve", techn, freq, f6spsd,
"curve", 1, &freqbc, &spsdc,
"curve", 1, &freqhc, &spsdc,
"curvex", 3, mn, f, H,
"linespec", "-a;-b;-l;-t;-g;-e;-r;kd;kd;-k;-k;-k",
"legend",
"No filt.;Order 1;Order 2;Order 3;Order 4;Order 5;Order 6;Cut-off;;Theor 6;;",
"grid", "on", "legcorn", "urp",
"title", "Butterworth band stop filtering",
"subtitlex", imgname.c_str(),
"xlabel", "$f/f_e$", "ylabel", "$[dB_{W/Hz}]$",
"aymin", (spsdmean-7), "linespeca", "-a", ∅);
if (ichk<0){
scltracerr(§, ƒ, ∅, "graf_dis() error!\n");
return ierr;
} ierr--;
//---------------------------------------------------------------------
//[>LIBÈRE MÉMOIRE]
//---------------------------------------------------------------------
delete[] sr; sr=∅; delete[] sj; sj=∅;
delete[] a; a=∅; delete[] b; b=∅;
delete[] fs; fs=∅; delete[] z; z=∅;
delete[] freq; freq=∅; delete[] spsd; spsd=∅;
delete[] f1spsd; f1spsd=∅; delete[] f2spsd; f2spsd=∅;
delete[] f3spsd; f3spsd=∅; delete[] f4spsd; f4spsd=∅;
delete[] f5spsd; f5spsd=∅; delete[] f6spsd; f6spsd=∅;
//---------------------------------------------------------------------
//[<LIBÈRE MÉMOIRE]
//---------------------------------------------------------------------
scltracefe(§, ƒ, ∅);
return 0;
}
/* ƒ décorée par
le 29-11-2026 13:34:56 */
Sortie
[>..\xpl\src\sclfiltr.xpl.cpp.buttercez_xpl]
scl-26.11 (cwin64, clang-22.1.8) : 29-11-2026 13:34:56
Butterworth band stop filter (order 1)
a: { 1.000000, -0.000000, 0.509525 }
b: { 0.754763, -0.000000, 0.754763 }
Butterworth band stop filter (order 2)
a: { 1.000000, -0.000000, 1.142981, -0.000000, 0.412802 }
b: { 0.638946, -0.000000, 1.277891, -0.000000, 0.638946 }
Butterworth band stop filter (order 3)
a: { 1.000000, -0.000000, 1.760042, -0.000000, 1.182893, 0.000000, 0.278060 }
b: { 0.527624, 0.000000, 1.582873, -0.000000, 1.582873, -0.000000, 0.527624 }
Butterworth band stop filter (order 4)
a: { 1.000000, -0.000000, 2.369513, -0.000000, 2.313988, 0.000000, 1.054665, 0.000000, 0.187379 }
b: { 0.432847, -0.000000, 1.731387, -0.000000, 2.597080, -0.000000, 1.731387, -0.000000, 0.432847 }
Butterworth band stop filter (order 5)
a: { 1.000000, 0.000000, 2.975422, 0.000000, 3.806018, 0.000000, 2.545253, 0.000000, 0.881130, 0.000000, 0.125431 }
b: { 0.354164, -0.000000, 1.770821, -0.000000, 3.541642, -0.000000, 3.541642, -0.000000, 1.770821, -0.000000, 0.354164 }
Butterworth band stop filter (order 6)
a: { 1.000000, -0.000000, 3.579435, -0.000000, 5.658667, -0.000000, 4.965415, -0.000000, 2.529495, -0.000000, 0.705274, -0.000000, 0.083756 }
b: { 0.289407, -0.000000, 1.736442, -0.000000, 4.341104, 0.000000, 5.788138, 0.000000, 4.341104, 0.000000, 1.736442, 0.000000, 0.289407 }
<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
<< END OF DISLIN / VERSION 11.3.2 <<
<< Date : 29.11.2026 Time : 13:35:22 Pageformat: DA4L <<
<< Vectors : 8553 Warnings: 0 Fileformat: SVG <<
<< Metafile: ./srt/buttercez_xpl.svg <<
<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
[<..\xpl\src\sclfiltr.xpl.cpp.buttercez_xpl]
[..] La fonction [scl] butterpbpscl 
Code
int butterpbp_xpl(){
scltracefa(§, ƒ, ∅);
scltracefc("scl-%s (%s, %s) : %s\n\n", sclver(), sclsec(), sclver_cc(), temps_char(0));
double wc = 1;
int n, i, x=9; double *fpr=new double[x], *fpj=new double[x], fg;
n=3; butterpbp(n, wc, fpr, fpj, &fg);
scltracefc("n=%d, wc=%lf, fg=%lf\n", n, wc, fg);
for (i=0;i<n;i++){
scltracefc(" - %lf + %lf*i\n", fpr[i], fpj[i]);
}
n=4; butterpbp(n, wc, fpr, fpj, &fg);
scltracefc("n=%d, wc=%lf, fg=%lf\n", n, wc, fg);
for (i=0;i<n;i++){
scltracefc(" - %lf + %lf*i\n", fpr[i], fpj[i]);
}
n=5; butterpbp(n, wc, fpr, fpj, &fg);
scltracefc("n=%d, wc=%lf, fg=%lf\n", n, wc, fg);
for (i=0;i<n;i++){
scltracefc(" - %lf + %lf*i\n", fpr[i], fpj[i]);
}
n=9; butterpbp(n, wc, fpr, fpj, &fg);
scltracefc("n=%d, wc=%lf, fg=%lf\n", n, wc, fg);
for (i=0;i<n;i++){
scltracefc(" - %lf + %lf*i\n", fpr[i], fpj[i]);
}
// Libr memoire
/*free(*/delete[] fpr/*)*/; fpr=∅; //[SCL_AF_000091]
/*free(*/delete[] fpj/*)*/; fpj=∅; //[SCL_AF_000091]
scltracefe(§, ƒ, ∅);
return 0;
}
/* ƒ décorée par
le 29-11-2026 13:35:23 */
Sortie
[>..\xpl\src\sclfiltr.xpl.cpp.butterpbp_xpl]
scl-26.11 (cwin64, clang-22.1.8) : 29-11-2026 13:35:23
n=3, wc=1.000000, fg=1.000000
- -0.500000 + 0.866025*i
- -1.000000 + 0.000000*i
- -0.500000 + -0.866025*i
n=4, wc=1.000000, fg=1.000000
- -0.382683 + 0.923880*i
- -0.923880 + 0.382683*i
- -0.923880 + -0.382683*i
- -0.382683 + -0.923880*i
n=5, wc=1.000000, fg=1.000000
- -0.309017 + 0.951057*i
- -0.809017 + 0.587785*i
- -1.000000 + 0.000000*i
- -0.809017 + -0.587785*i
- -0.309017 + -0.951057*i
n=9, wc=1.000000, fg=1.000000
- -0.173648 + 0.984808*i
- -0.500000 + 0.866025*i
- -0.766044 + 0.642788*i
- -0.939693 + 0.342020*i
- -1.000000 + 0.000000*i
- -0.939693 + -0.342020*i
- -0.766044 + -0.642788*i
- -0.500000 + -0.866025*i
- -0.173648 + -0.984808*i
[<..\xpl\src\sclfiltr.xpl.cpp.butterpbp_xpl]
[..] La fonction [scl] butterpbzscl 
Code
int butterpbz_xpl(){
scltracefa(§, ƒ, ∅);
scltracefc("scl-%s (%s, %s) : %s\n\n", sclver(), sclsec(), sclver_cc(), temps_char(0));
int ichk, ierr=-1;
int vn = (int)107, vi;
double dvn = (double)vn;
// Dyadic correction
vn = (int)pow(2, round(ln(dvn)/ln(2)));
double dtechn=pow(2, 10);
int techn=(int)dtechn;
double fehz = 1;
//---------------------------------------------------------------------
//[>RANDN]
//---------------------------------------------------------------------
int seed=0; double σ=1;
double *sr=new double[vn], *sj=new double[vn];
randn(vn, seed, σ, sr, sj); //🎲
for (vi=0;vi<vn;vi++){ sj[vi] = 0; /*signal réel!*/ }
double *freq=new double[techn], *spsd=new double[techn];
ichk = periodogramme(vn, sr, sj, techn, fehz, freq, spsd);
double spsdmax = max<double>(techn, spsd);
//---------------------------------------------------------------------
//[<RANDN]
//---------------------------------------------------------------------
// Cut-off frequency
double fchz = (fehz/2)/2;
double *a=new double[7], *b=new double[7];
double *fs = new double[vn], *z = new double[vn];
//---------------------------------------------------------------------
//[>FILTER & SPECTRUM]
//---------------------------------------------------------------------
int on=1, oo=on+1;
butterpbz(on, fchz, fehz, a, b);
scltracefc("Butterworth low pass filter (order %d)\n", on);
scltracefc(" a: ");
/*tracetab<double>(std::cout, oo, a); std::cout<<std::endl;*/
scltracetb(0, oo, a, "%lf"); scltracef("\n");
scltracefc(" b: ");
/*tracetab<double>(std::cout, oo, b); std::cout<<std::endl;*/
scltracetb(0, oo, b, "%lf"); scltracef("\n");
filtrz(vn, sr, oo, a, oo, b, fs, z);
double *f1spsd=newtab<double>(techn, 0);
ichk = periodogramme(vn, fs, sj, techn, fehz, freq, f1spsd);
//---------------------------------------------------------------------
on=2; oo=on+1;
butterpbz(on, fchz, fehz, a, b);
scltracefc("Butterworth low pass filter (order %d)\n", on);
scltracefc(" a: ");
/*tracetab<double>(std::cout, oo, a); std::cout<<std::endl;*/
scltracetb(0, oo, a, "%lf"); scltracef("\n");
scltracefc(" b: ");
/*tracetab<double>(std::cout, oo, b); std::cout<<std::endl;*/
scltracetb(0, oo, b, "%lf"); scltracef("\n");
filtrz(vn, sr, oo, a, oo, b, fs, z);
double *f2spsd=newtab<double>(techn, 0);
ichk = periodogramme(vn, fs, sj, techn, fehz, freq, f2spsd);
//---------------------------------------------------------------------
on=3; oo=on+1;
butterpbz(on, fchz, fehz, a, b);
scltracefc("Butterworth low pass filter (order %d)\n", on);
scltracefc(" a: ");
/*tracetab<double>(std::cout, oo, a); std::cout<<std::endl;*/
scltracetb(0, oo, a, "%lf"); scltracef("\n");
scltracefc(" b: ");
/*tracetab<double>(std::cout, oo, b); std::cout<<std::endl;*/
scltracetb(0, oo, b, "%lf"); scltracef("\n");
filtrz(vn, sr, oo, a, oo, b, fs, z);
double *f3spsd=newtab<double>(techn, 0);
ichk = periodogramme(vn, fs, sj, techn, fehz, freq, f3spsd);
//---------------------------------------------------------------------
on=4; oo=on+1;
butterpbz(on, fchz, fehz, a, b);
scltracefc("Butterworth low pass filter (order %d)\n", on);
scltracefc(" a: ");
/*tracetab<double>(std::cout, oo, a); std::cout<<std::endl;*/
scltracetb(0, oo, a, "%lf"); scltracef("\n");
scltracefc(" b: ");
/*tracetab<double>(std::cout, oo, b); std::cout<<std::endl;*/
scltracetb(0, oo, b, "%lf"); scltracef("\n");
filtrz(vn, sr, oo, a, oo, b, fs, z);
double *f4spsd=newtab<double>(techn, 0);
ichk = periodogramme(vn, fs, sj, techn, fehz, freq, f4spsd);
//---------------------------------------------------------------------
on=5; oo=on+1;
butterpbz(on, fchz, fehz, a, b);
scltracefc("Butterworth low pass filter (order %d)\n", on);
scltracefc(" a: ");
/*tracetab<double>(std::cout, oo, a); std::cout<<std::endl;*/
scltracetb(0, oo, a, "%lf"); scltracef("\n");
scltracefc(" b: ");
/*tracetab<double>(std::cout, oo, b); std::cout<<std::endl;*/
scltracetb(0, oo, b, "%lf"); scltracef("\n");
filtrz(vn, sr, oo, a, oo, b, fs, z);
double *f5spsd=newtab<double>(techn, 0);
ichk = periodogramme(vn, fs, sj, techn, fehz, freq, f5spsd);
//---------------------------------------------------------------------
on=6; oo=on+1;
butterpbz(on, fchz, fehz, a, b);
scltracefc("Butterworth low pass filter (order %d)\n", on);
scltracefc(" a: ");
/*tracetab<double>(std::cout, oo, a); std::cout<<std::endl;*/
scltracetb(0, oo, a, "%lf"); scltracef("\n");
scltracefc(" b: ");
/*tracetab<double>(std::cout, oo, b); std::cout<<std::endl;*/
scltracetb(0, oo, b, "%lf"); scltracef("\n");
filtrz(vn, sr, oo, a, oo, b, fs, z);
double *f6spsd=newtab<double>(techn, 0);
ichk = periodogramme(vn, fs, sj, techn, fehz, freq, f6spsd);
//---------------------------------------------------------------------
//[<FILTER & SPECTRUM]
//---------------------------------------------------------------------
// Pulsation de coupure echantillonnee [rad/s]
double wcz = 2*π*fchz, wz;
// Pulsation de coupure continue
double wcp = 2*fehz*tan(wcz/(2*fehz)), wp;
double fc = wcp/(2*π);
// Reponse theorique ordre 6 - seuil 6 dB
double fe = fc*pow( pow(10,6/10)-1, 1/(2*6) ), fa=-fe;
int fn=1001, fi; double *f = newtablin(fn, fa, fe);
double *H=new double[fn], cH; butterpbf(fn, f, 6, fc, H);
for(fi=0;fi<fn;fi++){
cH=H[fi];
// Frequence echantillonnee + passage log-puissance
wp=2*π*f[fi]; wz=2*fehz*tan-1(wp/(2*fehz));
f[fi]=wz/(2*π); H[fi]=10*log10(cH*cH);
}
std::string imgname=std::string(ƒ)+".svg", imgpath="./srt/"+imgname;
ichk = graf_dis(imgpath.c_str(), techn, freq, spsd,
"curve", techn, freq, f1spsd, "curve", techn, freq, f2spsd,
"curve", techn, freq, f3spsd, "curve", techn, freq, f4spsd,
"curve", techn, freq, f5spsd, "curve", techn, freq, f6spsd,
"curve", fn, f, H,
"linespec", "-a;-b;-l;-t;-g;-e;-r;-k",
"legend",
"No filt.;Order 1;Order 2;Order 3;Order 4;Order 5;Order 6;Theor 6",
"grid", "on", "legcorn", "urp",
"title", "Butterworth low pass filtering",
"subtitlex", imgname.c_str(),
"xlabel", "$f/f_e$", "ylabel", "$[dB_{W/Hz}]$",
"aymin", (spsdmax-7), "linespeca", "-a", ∅);
if (ichk<0){
std::cerr << "[<" << § << "." << ƒ << ">] " <<
"graf_dis() error!" << std::endl;
return ierr;
} ierr--;
//---------------------------------------------------------------------
//[>LIBÈRE MÉMOIRE]
//---------------------------------------------------------------------
delete[] sj; sj=∅; delete[] sr; sr=∅;
delete[] freq; freq=∅; delete[] spsd; spsd=∅;
delete[] f1spsd; f1spsd=∅; delete[] f2spsd; f2spsd=∅;
delete[] f3spsd; f3spsd=∅; delete[] f4spsd; f4spsd=∅;
delete[] f5spsd; f5spsd=∅; delete[] f6spsd; f6spsd=∅;
//---------------------------------------------------------------------
//[<LIBÈRE MÉMOIRE]
//---------------------------------------------------------------------
scltracefe(§, ƒ, ∅);
return 0;
}
/* ƒ décorée par
le 29-11-2026 13:35:23 */
Sortie
[>..\xpl\src\sclfiltr.xpl.cpp.butterpbz_xpl]
scl-26.11 (cwin64, clang-22.1.8) : 29-11-2026 13:35:23
Butterworth low pass filter (order 1)
a: { 1.000000, -0.000000 }
b: { 0.500000, 0.500000 }
Butterworth low pass filter (order 2)
a: { 1.000000, -0.000000, 0.171573 }
b: { 0.292893, 0.585786, 0.292893 }
Butterworth low pass filter (order 3)
a: { 1.000000, -0.000000, 0.333333, -0.000000 }
b: { 0.166667, 0.500000, 0.500000, 0.166667 }
Butterworth low pass filter (order 4)
a: { 1.000000, -0.000000, 0.486029, -0.000000, 0.017665 }
b: { 0.093981, 0.375923, 0.563885, 0.375923, 0.093981 }
Butterworth low pass filter (order 5)
a: { 1.000000, -0.000000, 0.633437, -0.000000, 0.055728, -0.000000 }
b: { 0.052786, 0.263932, 0.527864, 0.527864, 0.263932, 0.052786 }
Butterworth low pass filter (order 6)
a: { 1.000000, 0.000000, 0.777696, -0.000000, 0.114199, -0.000000, 0.001751 }
b: { 0.029588, 0.177529, 0.443823, 0.591764, 0.443823, 0.177529, 0.029588 }
<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
<< END OF DISLIN / VERSION 11.3.2 <<
<< Date : 29.11.2026 Time : 13:35:45 Pageformat: DA4L <<
<< Vectors : 7082 Warnings: 0 Fileformat: SVG <<
<< Metafile: ./srt/butterpbz_xpl.svg <<
<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
[<..\xpl\src\sclfiltr.xpl.cpp.butterpbz_xpl]
[..] La fonction [scl] butterpezscl 
Code
int butterpez_xpl(){
scltracefa(§, ƒ, ∅);
scltracefc("scl-%s (%s, %s) : %s\n\n", sclver(), sclsec(), sclver_cc(), temps_char(0));
int ichk, ierr=-1;
int vn = (int)107, vi;
double dvn = (double)vn;
// Dyadic correction
vn = (int)pow(2, round(ln(dvn)/ln(2)));
double dtechn=pow(2, 10);
int techn=(int)dtechn;
double fe_hz = 1;
//---------------------------------------------------------------------
//[>RANDN]
//---------------------------------------------------------------------
int seed=0; double σ=1;
double *sr=new double[vn], *sj=new double[vn];
randn(vn, seed, σ, sr, sj); //🎲
for (vi=0;vi<vn;vi++){ sj[vi] = 0; /*signal réel!*/ }
double *freq=new double[techn], *spsd=new double[techn];
ichk = periodogramme(vn, sr, sj, techn, fe_hz, freq, spsd);
double spsdmean = moy(techn, spsd);
double spsdc = spsdmean - 3;
//---------------------------------------------------------------------
//[<RANDN]
//---------------------------------------------------------------------
// Cut-off frequencies
double fca_hz=0.2*fe_hz, freqbc=fca_hz/fe_hz;
double fce_hz=0.3*fe_hz, freqhc=fce_hz/fe_hz;
double *a=new double[13], *b=new double[13];
double *fs = new double[vn], *z = new double[vn];
//---------------------------------------------------------------------
//[>FILTER & SPECTRUM]
//---------------------------------------------------------------------
int on=1, oo=2*on+1;
butterpez(on, fca_hz, fce_hz, fe_hz, a, b);
scltracefc("Butterworth band pass filter (order %d)\n", on);
scltracefc(" a: ");
/*tracetab<double>(std::cout, oo, a); std::cout<<std::endl;*/
scltracetb(0, oo, a, "%lf"); scltracef("\n");
scltracefc(" b: ");
/*tracetab<double>(std::cout, oo, b); std::cout<<std::endl;*/
scltracetb(0, oo, b, "%lf"); scltracef("\n");
filtrz(vn, sr, oo, a, oo, b, fs, z);
double *f1spsd=newtab<double>(techn, 0);
ichk = periodogramme(vn, fs, sj, techn, fe_hz, freq, f1spsd);
//---------------------------------------------------------------------
on=2; oo=2*on+1;
butterpez(on, fca_hz, fce_hz, fe_hz, a, b);
scltracefc("Butterworth band pass filter (order %d)\n", on);
scltracefc(" a: ");
/*tracetab<double>(std::cout, oo, a); std::cout<<std::endl;*/
scltracetb(0, oo, a, "%lf"); scltracef("\n");
scltracefc(" b: ");
/*tracetab<double>(std::cout, oo, b); std::cout<<std::endl;*/
scltracetb(0, oo, b, "%lf"); scltracef("\n");
filtrz(vn, sr, oo, a, oo, b, fs, z);
double *f2spsd=newtab<double>(techn, 0);
ichk = periodogramme(vn, fs, sj, techn, fe_hz, freq, f2spsd);
//---------------------------------------------------------------------
on=3; oo=2*on+1;
butterpez(on, fca_hz, fce_hz, fe_hz, a, b);
scltracefc("Butterworth band pass filter (order %d)\n", on);
scltracefc(" a: ");
/*tracetab<double>(std::cout, oo, a); std::cout<<std::endl;*/
scltracetb(0, oo, a, "%lf"); scltracef("\n");
scltracefc(" b: ");
/*tracetab<double>(std::cout, oo, b); std::cout<<std::endl;*/
scltracetb(0, oo, b, "%lf"); scltracef("\n");
filtrz(vn, sr, oo, a, oo, b, fs, z);
double *f3spsd=newtab<double>(techn, 0);
ichk = periodogramme(vn, fs, sj, techn, fe_hz, freq, f3spsd);
//---------------------------------------------------------------------
on=4; oo=2*on+1;
butterpez(on, fca_hz, fce_hz, fe_hz, a, b);
scltracefc("Butterworth band pass filter (order %d)\n", on);
scltracefc(" a: ");
/*tracetab<double>(std::cout, oo, a); std::cout<<std::endl;*/
scltracetb(0, oo, a, "%lf"); scltracef("\n");
scltracefc(" b: ");
/*tracetab<double>(std::cout, oo, b); std::cout<<std::endl;*/
scltracetb(0, oo, b, "%lf"); scltracef("\n");
filtrz(vn, sr, oo, a, oo, b, fs, z);
double *f4spsd=newtab<double>(techn, 0);
ichk = periodogramme(vn, fs, sj, techn, fe_hz, freq, f4spsd);
//---------------------------------------------------------------------
on=5; oo=2*on+1;
butterpez(on, fca_hz, fce_hz, fe_hz, a, b);
scltracefc("Butterworth band pass filter (order %d)\n", on);
scltracefc(" a: ");
/*tracetab<double>(std::cout, oo, a); std::cout<<std::endl;*/
scltracetb(0, oo, a, "%lf"); scltracef("\n");
scltracefc(" b: ");
/*tracetab<double>(std::cout, oo, b); std::cout<<std::endl;*/
scltracetb(0, oo, b, "%lf"); scltracef("\n");
filtrz(vn, sr, oo, a, oo, b, fs, z);
double *f5spsd=newtab<double>(techn, 0);
ichk = periodogramme(vn, fs, sj, techn, fe_hz, freq, f5spsd);
//---------------------------------------------------------------------
on=6; oo=2*on+1; double don=(double)on;
butterpez(on, fca_hz, fce_hz, fe_hz, a, b);
scltracefc("Butterworth band pass filter (order %d)\n", on);
scltracefc(" a: ");
/*tracetab<double>(std::cout, oo, a); std::cout<<std::endl;*/
scltracetb(0, oo, a, "%lf"); scltracef("\n");
scltracefc(" b: ");
/*tracetab<double>(std::cout, oo, b); std::cout<<std::endl;*/
scltracetb(0, oo, b, "%lf"); scltracef("\n");
filtrz(vn, sr, oo, a, oo, b, fs, z);
double *f6spsd=newtab<double>(techn, 0);
ichk = periodogramme(vn, fs, sj, techn, fe_hz, freq, f6spsd);
//---------------------------------------------------------------------
//[<FILTER & SPECTRUM]
//---------------------------------------------------------------------
//---------------------------------------------------------------------
//[>RÉPONSE THÉORIQUE]
//---------------------------------------------------------------------
// Pulsations de coupure echantillonnees
double wca_z=2*π*fca_hz, wce_z=2*π*fce_hz;
// Pulsations de coupure continues
double wca_p = 2*fe_hz*tan(wca_z/(2*fe_hz));
double wce_p = 2*fe_hz*tan(wce_z/(2*fe_hz));
// Frequences de coupure continues
double fca_p=wca_p/(2*π), fce_p=wce_p/(2*π);
double Ha=-6, Kna=pow(pow(10, -Ha/10)-1, 1/(2*don));
double fcd_p = fce_p - fca_p;
double D=Kna*Kna*fcd_p*fcd_p+4*fca_p*fce_p, sqrD=√(D);
// Reponse theorique ordre 6 - seuil 6 dB
double fa=-(Kna*fcd_p-sqrD)/2, fe=(Kna*fcd_p+sqrD)/2;
int fn=251, fi;
double **f=newmat<double>(2, fn), **H=newmat<double>(2, fn);
int *mn = newtab<int>(2, fn);
// Points de frequence continue
newtablin(fn,-fe,-fa, f[0]);
newtablin(fn, fa, fe, f[1]);
// Reponse continue
butterpef(fn, f[0], on, fca_p, fce_p, H[0]);
butterpef(fn, f[1], on, fca_p, fce_p, H[1]);
double wp0, wp1, wz0, wz1, cH0, cH1;
for(fi=0;fi<fn;fi++){
cH0=H[0][fi]; cH1=H[1][fi];
// Retour aux frequences echantillonnees
wp0=2*π*f[0][fi];
wp1=2*π*f[1][fi];
wz0=2*fe_hz*tan-1(wp0/(2*fe_hz));
wz1=2*fe_hz*tan-1(wp1/(2*fe_hz));
f[0][fi]=wz0/(2*π);
f[1][fi]=wz1/(2*π);
// Passage log-puissance
H[0][fi]=10*log10(cH0*cH0);
H[1][fi]=10*log10(cH1*cH1);
}
//---------------------------------------------------------------------
//[<RÉPONSE THÉORIQUE]
//---------------------------------------------------------------------
std::string imgname=std::string(ƒ)+".svg", imgpath="./srt/"+imgname;
ichk = graf_dis(imgpath.c_str(), techn, freq, spsd,
"curve", techn, freq, f1spsd,
"curve", techn, freq, f2spsd,
"curve", techn, freq, f3spsd,
"curve", techn, freq, f4spsd,
"curve", techn, freq, f5spsd,
"curve", techn, freq, f6spsd,
"curve", 1, &freqbc, &spsdc,
"curve", 1, &freqhc, &spsdc,
"curvex", 2, mn, f, H,
"linespec", "-a;-b;-l;-t;-g;-e;-r;kd;kd;-k;-k",
"legend",
"No filt.;Order 1;Order 2;Order 3;Order 4;Order 5;Order 6;Cut-off;;Theor 6;",
"grid", "on", "legcorn", "urp",
"title", "Butterworth band pass filtering",
"subtitlex", imgname.c_str(),
"xlabel", "$f/f_e$", "ylabel", "$[dB_{W/Hz}]$",
"aymin", (spsdmean-7), "linespeca", "-a", ∅);
if (ichk<0){
scltracerr(§, ƒ, ∅, "graf_dis() error!\n");
return ierr;
} ierr--;
//---------------------------------------------------------------------
//[>LIBÈRE MÉMOIRE]
//---------------------------------------------------------------------
delete[] sj; sj=∅; delete[] sr; sr=∅;
delete[] a; a=∅; delete[] b; b=∅;
delete[] fs; fs=∅; delete[] z; z=∅;
delete[] freq; freq=∅; delete[] spsd; spsd=∅;
delete[] f1spsd; f1spsd=∅; delete[] f2spsd; f2spsd=∅;
delete[] f3spsd; f3spsd=∅; delete[] f4spsd; f4spsd=∅;
delete[] f5spsd; f5spsd=∅; delete[] f6spsd; f6spsd=∅;
//---------------------------------------------------------------------
//[<LIBÈRE MÉMOIRE]
//---------------------------------------------------------------------
scltracefe(§, ƒ, ∅);
return 0;
}
/* ƒ décorée par
le 29-11-2026 13:35:46 */
Sortie
[>..\xpl\src\sclfiltr.xpl.cpp.butterpez_xpl]
scl-26.11 (cwin64, clang-22.1.8) : 29-11-2026 13:35:46
Butterworth band pass filter (order 1)
a: { 1.000000, -0.000000, 0.509525 }
b: { 0.245237, 0.000000, -0.245237 }
Butterworth band pass filter (order 2)
a: { 1.000000, -0.000000, 1.142981, -0.000000, 0.412802 }
b: { 0.067455, -0.000000, -0.134911, 0.000000, 0.067455 }
Butterworth band pass filter (order 3)
a: { 1.000000, -0.000000, 1.760042, -0.000000, 1.182893, -0.000000, 0.278060 }
b: { 0.018099, 0.000000, -0.054297, 0.000000, 0.054297, 0.000000, -0.018099 }
Butterworth band pass filter (order 4)
a: { 1.000000, -0.000000, 2.369513, -0.000000, 2.313988, -0.000000, 1.054665, -0.000000, 0.187379 }
b: { 0.004824, 0.000000, -0.019297, 0.000000, 0.028946, 0.000000, -0.019297, 0.000000, 0.004824 }
Butterworth band pass filter (order 5)
a: { 1.000000, -0.000000, 2.975422, -0.000000, 3.806018, -0.000000, 2.545253, -0.000000, 0.881130, -0.000000, 0.125431 }
b: { 0.001283, 0.000000, -0.006413, 0.000000, 0.012826, 0.000000, -0.012826, 0.000000, 0.006413, 0.000000, -0.001283 }
Butterworth band pass filter (order 6)
a: { 1.000000, -0.000000, 3.579435, -0.000000, 5.658667, -0.000000, 4.965415, -0.000000, 2.529495, -0.000000, 0.705274, -0.000000, 0.083756 }
b: { 0.000341, 0.000000, -0.002043, 0.000000, 0.005108, 0.000000, -0.006811, 0.000000, 0.005108, -0.000000, -0.002043, -0.000000, 0.000341 }
<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
<< END OF DISLIN / VERSION 11.3.2 <<
<< Date : 29.11.2026 Time : 13:36:27 Pageformat: DA4L <<
<< Vectors : 4729 Warnings: 0 Fileformat: SVG <<
<< Metafile: ./srt/butterpez_xpl.svg <<
<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
[<..\xpl\src\sclfiltr.xpl.cpp.butterpez_xpl]
[..] La fonction [scl] butterphzscl 
Code
int butterphz_xpl(){
scltracefa(§, ƒ, ∅);
scltracefc("scl-%s (%s, %s) : %s\n\n", sclver(), sclsec(), sclver_cc(), temps_char(0));
int ichk, ierr=-1;
int vn = (int)107, vi;
double dvn = (double)vn;
// Dyadic correction
vn = (int)pow(2, round(ln(dvn)/ln(2)));
double dtechn=pow(2, 10);
int techn=(int)dtechn;
double fehz = 1;
//---------------------------------------------------------------------
//[>RANDN]
//---------------------------------------------------------------------
int seed=0; double σ=1;
double *sr=new double[vn], *sj=new double[vn];
randn(vn, seed, σ, sr, sj); //🎲
for (vi=0;vi<vn;vi++){ sj[vi] = 0; /*signal réel!*/ }
double *freq=new double[techn], *spsd=new double[techn];
ichk = periodogramme(vn, sr, sj, techn, fehz, freq, spsd);
double spsdmean = moy(techn, spsd);
double spsdc = spsdmean - 3;
//---------------------------------------------------------------------
//[<RANDN]
//---------------------------------------------------------------------
// Cut-off frequency
double fchz=(fehz/2)/2, freqc=fchz/fehz;
double *a=new double[7], *b=new double[7];
double *fs = new double[vn], *z = new double[vn];
//---------------------------------------------------------------------
//[>FILTER & SPECTRUM]
//---------------------------------------------------------------------
int on=1, oo=on+1;
butterphz(on, fchz, fehz, a, b);
scltracefc("Butterworth high pass filter (order %d)\n", on);
scltracefc(" a: ");
/*tracetab<double>(std::cout, oo, a); std::cout<<std::endl;*/
scltracetb(0, oo, a, "%lf"); scltracef("\n");
scltracefc(" b: ");
/*tracetab<double>(std::cout, oo, b); std::cout<<std::endl;*/
scltracetb(0, oo, b, "%lf"); scltracef("\n");
filtrz(vn, sr, oo, a, oo, b, fs, z);
double *f1spsd=newtab<double>(techn, 0);
ichk = periodogramme(vn, fs, sj, techn, fehz, freq, f1spsd);
//---------------------------------------------------------------------
on=2; oo=on+1;
butterphz(on, fchz, fehz, a, b);
scltracefc("Butterworth high pass filter (order %d)\n", on);
scltracefc(" a: ");
/*tracetab<double>(std::cout, oo, a); std::cout<<std::endl;*/
scltracetb(0, oo, a, "%lf"); scltracef("\n");
scltracefc(" b: ");
/*tracetab<double>(std::cout, oo, b); std::cout<<std::endl;*/
scltracetb(0, oo, b, "%lf"); scltracef("\n");
filtrz(vn, sr, oo, a, oo, b, fs, z);
double *f2spsd=newtab<double>(techn, 0);
ichk = periodogramme(vn, fs, sj, techn, fehz, freq, f2spsd);
//---------------------------------------------------------------------
on=3; oo=on+1;
butterphz(on, fchz, fehz, a, b);
scltracefc("Butterworth high pass filter (order %d)\n", on);
scltracefc(" a: ");
/*tracetab<double>(std::cout, oo, a); std::cout<<std::endl;*/
scltracetb(0, oo, a, "%lf"); scltracef("\n");
scltracefc(" b: ");
/*tracetab<double>(std::cout, oo, b); std::cout<<std::endl;*/
scltracetb(0, oo, b, "%lf"); scltracef("\n");
filtrz(vn, sr, oo, a, oo, b, fs, z);
double *f3spsd=newtab<double>(techn, 0);
ichk = periodogramme(vn, fs, sj, techn, fehz, freq, f3spsd);
//---------------------------------------------------------------------
on=4; oo=on+1;
butterphz(on, fchz, fehz, a, b);
scltracefc("Butterworth high pass filter (order %d)\n", on);
scltracefc(" a: ");
/*tracetab<double>(std::cout, oo, a); std::cout<<std::endl;*/
scltracetb(0, oo, a, "%lf"); scltracef("\n");
scltracefc(" b: ");
/*tracetab<double>(std::cout, oo, b); std::cout<<std::endl;*/
scltracetb(0, oo, b, "%lf"); scltracef("\n");
filtrz(vn, sr, oo, a, oo, b, fs, z);
double *f4spsd=newtab<double>(techn, 0);
ichk = periodogramme(vn, fs, sj, techn, fehz, freq, f4spsd);
//---------------------------------------------------------------------
on=5; oo=on+1;
butterphz(on, fchz, fehz, a, b);
scltracefc("Butterworth high pass filter (order %d)\n", on);
scltracefc(" a: ");
/*tracetab<double>(std::cout, oo, a); std::cout<<std::endl;*/
scltracetb(0, oo, a, "%lf"); scltracef("\n");
scltracefc(" b: ");
/*tracetab<double>(std::cout, oo, b); std::cout<<std::endl;*/
scltracetb(0, oo, b, "%lf"); scltracef("\n");
filtrz(vn, sr, oo, a, oo, b, fs, z);
double *f5spsd=newtab<double>(techn, 0);
ichk = periodogramme(vn, fs, sj, techn, fehz, freq, f5spsd);
//---------------------------------------------------------------------
on=6; oo=on+1;
butterphz(on, fchz, fehz, a, b);
scltracefc("Butterworth high pass filter (order %d)\n", on);
scltracefc(" a: ");
/*tracetab<double>(std::cout, oo, a); std::cout<<std::endl;*/
scltracetb(0, oo, a, "%lf"); scltracef("\n");
scltracefc(" b: ");
/*tracetab<double>(std::cout, oo, b); std::cout<<std::endl;*/
scltracetb(0, oo, b, "%lf"); scltracef("\n");
filtrz(vn, sr, oo, a, oo, b, fs, z);
double *f6spsd=newtab<double>(techn, 0);
ichk = periodogramme(vn, fs, sj, techn, fehz, freq, f6spsd);
//---------------------------------------------------------------------
//[<FILTER & SPECTRUM]
//---------------------------------------------------------------------
//---------------------------------------------------------------------
//[>REPONSE THEORIQUE]
//---------------------------------------------------------------------
// Pulsation de coupure échantillonnée [rad/s]
double wcz = 2*π*fchz, wz0, wz1;
// Pulsation de coupure continue
double wcp = 2*fehz*tan(wcz/(2*fehz)), wp0, wp1;
double fc = wcp/(2*π);
// Reponse theorique ordre 6 - seuil 6 dB
double fe = fc/pow( pow(10,6/10)-1, 1/(2*6) );
int fn=501, fi; double **f=newmat<double>(2, fn);
newtabfpz(fn,-103*fehz,-fe, fehz, f[0]); // regulier en freq echantillonnee
newtabfpz(fn, fe, 103*fehz, fehz, f[1]); // regulier en freq echantillonnee
double **H=newmat<double>(2, fn), cH0, cH1;
butterphf(fn, f[0], 6, fc, H[0]);
butterphf(fn, f[1], 6, fc, H[1]);
int *mn = newtab<int>(2, fn);
for(fi=0;fi<fn;fi++){
cH0=H[0][fi]; cH1=H[1][fi];
// Frequence echantillonnee + passage log-puissance
wp0=2*π*f[0][fi]; wp1=2*π*f[1][fi];
wz0=2*fehz*tan-1(wp0/(2*fehz)); wz1=2*fehz*tan-1(wp1/(2*fehz));
f[0][fi]=wz0/(2*π); f[1][fi]=wz1/(2*π);
H[0][fi]=10*log10(cH0*cH0); H[1][fi]=10*log10(cH1*cH1);
}
//---------------------------------------------------------------------
//[<REPONSE THEORIQUE]
//---------------------------------------------------------------------
std::string imgname=std::string(ƒ)+".svg", imgpath="./srt/"+imgname;
ichk = graf_dis(imgpath.c_str(), techn, freq, spsd,
"curve", techn, freq, f1spsd,
"curve", techn, freq, f2spsd,
"curve", techn, freq, f3spsd,
"curve", techn, freq, f4spsd,
"curve", techn, freq, f5spsd,
"curve", techn, freq, f6spsd,
"curve", 1, &freqc, &spsdc,
"curvex", 2, mn, f, H,
"linespec", "-a;-b;-l;-t;-g;-e;-r;kd;-k;-k",
"legend",
"No filt.;Order 1;Order 2;Order 3;Order 4;Order 5;Order 6;Cut-off;Theor 6;",
"grid", "on", "legcorn", "urp",
"title", "Butterworth high pass filtering",
"subtitlex", imgname.c_str(),
"xlabel", "$f/f_e$", "ylabel", "$[dB_{W/Hz}]$",
"aymin", (spsdmean-7), "linespeca", "-a", ∅);
if (ichk<0){
scltracerr(§, ƒ, ∅, "graf_dis() error!\n");
return ierr;
} ierr--;
//---------------------------------------------------------------------
//[>LIBÈRE MÉMOIRE]
//---------------------------------------------------------------------
delete[] sj; sj=∅; delete[] sr; sr=∅;
delete[] freq; freq=∅; delete[] spsd; spsd=∅;
delete[] f1spsd; f1spsd=∅; delete[] f2spsd; f2spsd=∅;
delete[] f3spsd; f3spsd=∅; delete[] f4spsd; f4spsd=∅;
delete[] f5spsd; f5spsd=∅; delete[] f6spsd; f6spsd=∅;
//---------------------------------------------------------------------
//[<LIBÈRE MÉMOIRE]
//---------------------------------------------------------------------
scltracefe(§, ƒ, ∅);
return 0;
}
/* ƒ décorée par
le 29-11-2026 13:36:28 */
Sortie
[>..\xpl\src\sclfiltr.xpl.cpp.butterphz_xpl]
scl-26.11 (cwin64, clang-22.1.8) : 29-11-2026 13:36:28
Butterworth high pass filter (order 1)
a: { 1.000000, -0.000000 }
b: { 0.500000, -0.500000 }
Butterworth high pass filter (order 2)
a: { 1.000000, -0.000000, 0.171573 }
b: { 0.292893, -0.585786, 0.292893 }
Butterworth high pass filter (order 3)
a: { 1.000000, -0.000000, 0.333333, 0.000000 }
b: { 0.166667, -0.500000, 0.500000, -0.166667 }
Butterworth high pass filter (order 4)
a: { 1.000000, -0.000000, 0.486029, -0.000000, 0.017665 }
b: { 0.093981, -0.375923, 0.563885, -0.375923, 0.093981 }
Butterworth high pass filter (order 5)
a: { 1.000000, -0.000000, 0.633437, -0.000000, 0.055728, -0.000000 }
b: { 0.052786, -0.263932, 0.527864, -0.527864, 0.263932, -0.052786 }
Butterworth high pass filter (order 6)
a: { 1.000000, -0.000000, 0.777696, -0.000000, 0.114199, 0.000000, 0.001751 }
b: { 0.029588, -0.177529, 0.443823, -0.591764, 0.443823, -0.177529, 0.029588 }
<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
<< END OF DISLIN / VERSION 11.3.2 <<
<< Date : 29.11.2026 Time : 13:36:58 Pageformat: DA4L <<
<< Vectors : 7205 Warnings: 0 Fileformat: SVG <<
<< Metafile: ./srt/butterphz_xpl.svg <<
<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
[<..\xpl\src\sclfiltr.xpl.cpp.butterphz_xpl]
[..] La fonction [scl] chebystscl 
Code
int chebyst_xpl(){
scltracefa(§, ƒ, ∅);
scltracefc("scl-%s (%s, %s) : %s\n\n", sclver(), sclsec(), sclver_cc(), temps_char(0));
chebyst_xpl(64);
chebyst_xpl(67);
chebyst_xpl(128);
chebyst_xpl(256);
chebyst_xpl(512);
scltracefe(§, ƒ, ∅);
return 0;
}
/* ƒ décorée par
le 29-11-2026 13:36:58 */
int chebyst_xpl(int techn){
scltracefa(§, ƒ, ∅);
// Attenuation des lobles secondaires
int an=3, ai; double adb[3]={ 90, 60, 30 };
// Seuil puissance spectrale
double amin = pow(10,-(adb[0]+30)/10);
int tn=64; double dtn=(double)tn;
int *mn=new int[an], *tmn=new int[an]; int echi;
double **h=newmat<double>(an, techn, 0), *hnul=newtab<double>(techn, 0);
double **tr= newmat<double>(an, techn), **tj= newmat<double>(an, techn);
double cr, cj, ca;
double amax;
for(ai=0;ai<an;ai++){
mn[ai]=tn; tmn[ai]=techn;
chebyst(adb[ai],tn,h[ai]);
tfd(techn, h[ai], hnul, 0, tr[ai], tj[ai]);
amax = -∞rd;
for(echi=0;echi<techn;echi++){
cr=tr[ai][echi]; cj=tj[ai][echi]; ca=cr*cr+cj*cj;
tr[ai][echi]=ca; if(amax<ca){ amax=ca; }
}
for(echi=0;echi<techn;echi++){
ca=tr[ai][echi]; ca/=amax;
if(ca<amin){ ca=amin; } tr[ai][echi]=10*log10(ca);
}
crabe(techn, tr[ai],techn/2, tr[ai]); // [&]#x1F980;
}
scl::string_c imgname=scl::string_c(ƒ)+"-t.svg",
imgpath="./srt/"+imgname;
graf_dis(imgpath.c_str(), 0, ∅, ∅,
"curvex", an, mn, ∅, h, "grid", "on",
"title", "Dolph-Chebyshev window", "subtitle", imgname.c_str(),
"linespec", "-l;-t;-n", "linespeca", "-a",
"axmin", 0, "axmax", (dtn+1),
"legend", "Att. 90 [dB];Att. 60 [dB];Att. 30 [dB]", ∅);
imgname.clear();
imgname=scl::string_c(ƒ)+"-f-"+num_str<int>(techn)+".svg";
imgpath.clear(); imgpath="./srt/"+imgname;
graf_dis(imgpath.c_str(), 0, ∅, ∅,
"curvex", an, tmn, ∅, tr, "grid", "on",
"title", "Dolph-Chebyshev frequency response",
"subtitle", imgname.c_str(),
"linespec", "-l;-t;-n", "linespeca", "-a",
"legend", "Att. 90 [dB];Att. 60 [dB];Att. 30 [dB]", ∅);
//---------------------------------------------------------------------
//[>LIBÈRE MÉMOIRE]
//---------------------------------------------------------------------
deletemat<double>(an, &tj); deletemat<double>(an, &tr);
delete[] hnul; hnul=∅; deletemat<double>(an, &h);
delete[] tmn; tmn=∅; delete[] mn; mn=∅;
//---------------------------------------------------------------------
//[<LIBÈRE MÉMOIRE]
//---------------------------------------------------------------------
scltracefe(§, ƒ, ∅);
return 0;
}
/* ƒ décorée par
le 29-11-2026 13:36:58 */
Sortie
[>..\xpl\src\sclfiltr.xpl.cpp.chebyst_xpl]
scl-26.11 (cwin64, clang-22.1.8) : 29-11-2026 13:36:58
[>..\xpl\src\sclfiltr.xpl.cpp.chebyst_xpl]
<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
<< END OF DISLIN / VERSION 11.3.2 <<
<< Date : 29.11.2026 Time : 13:36:58 Pageformat: DA4L <<
<< Vectors : 1593 Warnings: 0 Fileformat: SVG <<
<< Metafile: ./srt/chebyst_xpl-t.svg <<
<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
<< END OF DISLIN / VERSION 11.3.2 <<
<< Date : 29.11.2026 Time : 13:36:58 Pageformat: DA4L <<
<< Vectors : 1178 Warnings: 0 Fileformat: SVG <<
<< Metafile: ./srt/chebyst_xpl-f-64.svg <<
<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
[<..\xpl\src\sclfiltr.xpl.cpp.chebyst_xpl]
[>..\xpl\src\sclfiltr.xpl.cpp.chebyst_xpl]
<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
<< END OF DISLIN / VERSION 11.3.2 <<
<< Date : 29.11.2026 Time : 13:36:58 Pageformat: DA4L <<
<< Vectors : 1593 Warnings: 0 Fileformat: SVG <<
<< Metafile: ./srt/chebyst_xpl-t.svg <<
<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
<< END OF DISLIN / VERSION 11.3.2 <<
<< Date : 29.11.2026 Time : 13:36:58 Pageformat: DA4L <<
<< Vectors : 1189 Warnings: 0 Fileformat: SVG <<
<< Metafile: ./srt/chebyst_xpl-f-67.svg <<
<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
[<..\xpl\src\sclfiltr.xpl.cpp.chebyst_xpl]
[>..\xpl\src\sclfiltr.xpl.cpp.chebyst_xpl]
<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
<< END OF DISLIN / VERSION 11.3.2 <<
<< Date : 29.11.2026 Time : 13:36:58 Pageformat: DA4L <<
<< Vectors : 1593 Warnings: 0 Fileformat: SVG <<
<< Metafile: ./srt/chebyst_xpl-t.svg <<
<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
<< END OF DISLIN / VERSION 11.3.2 <<
<< Date : 29.11.2026 Time : 13:36:58 Pageformat: DA4L <<
<< Vectors : 1370 Warnings: 0 Fileformat: SVG <<
<< Metafile: ./srt/chebyst_xpl-f-128.svg <<
<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
[<..\xpl\src\sclfiltr.xpl.cpp.chebyst_xpl]
[>..\xpl\src\sclfiltr.xpl.cpp.chebyst_xpl]
<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
<< END OF DISLIN / VERSION 11.3.2 <<
<< Date : 29.11.2026 Time : 13:36:58 Pageformat: DA4L <<
<< Vectors : 1593 Warnings: 0 Fileformat: SVG <<
<< Metafile: ./srt/chebyst_xpl-t.svg <<
<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
<< END OF DISLIN / VERSION 11.3.2 <<
<< Date : 29.11.2026 Time : 13:36:58 Pageformat: DA4L <<
<< Vectors : 1679 Warnings: 0 Fileformat: SVG <<
<< Metafile: ./srt/chebyst_xpl-f-256.svg <<
<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
[<..\xpl\src\sclfiltr.xpl.cpp.chebyst_xpl]
[>..\xpl\src\sclfiltr.xpl.cpp.chebyst_xpl]
<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
<< END OF DISLIN / VERSION 11.3.2 <<
<< Date : 29.11.2026 Time : 13:36:58 Pageformat: DA4L <<
<< Vectors : 1593 Warnings: 0 Fileformat: SVG <<
<< Metafile: ./srt/chebyst_xpl-t.svg <<
<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
<< END OF DISLIN / VERSION 11.3.2 <<
<< Date : 29.11.2026 Time : 13:36:58 Pageformat: DA4L <<
<< Vectors : 2447 Warnings: 0 Fileformat: SVG <<
<< Metafile: ./srt/chebyst_xpl-f-512.svg <<
<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
[<..\xpl\src\sclfiltr.xpl.cpp.chebyst_xpl]
[<..\xpl\src\sclfiltr.xpl.cpp.chebyst_xpl]
[..] La fonction [scl] cosinrusfscl 
Code
int cosinrusf_xpl(){
scltracefa(§, ƒ, ∅);
scltracefc("scl-%s (%s, %s) : %s\n\n", sclver(), sclsec(), sclver_cc(), temps_char(0));
double tc=1, fc=1/(2*tc);
int fn = 501;
double *f = newtablin(fn, -2*fc, 2*fc);
double α=1; double *H10=new double[fn];
cosinrusf(f, fn, tc, α, H10);
scl::string_c legend = "α=" + num_str<double>(α);
α=0.5; double *H05=new double[fn];
cosinrusf(f, fn, tc, α, H05);
legend += ";α=" + num_str<double>(α);
α=0.2; double *H02=new double[fn];
cosinrusf(f, fn, tc, α, H02);
legend += ";α=" + num_str<double>(α);
α=0.1; double *H01=new double[fn];
cosinrusf(f, fn, tc, α, H01);
legend += ";α=" + num_str<double>(α);
α=0; double *H00=new double[fn];
cosinrusf(f, fn, tc, α, H00);
legend += ";α=" + num_str<double>(α) + " (rect)";
scl::string_c imgname=scl::string_c(ƒ)+".svg",
imgpath="./srt/"+imgname;
graf_dis(imgpath.c_str(), fn, f, H10, "curve", fn, f, H05,
"curve", fn, f, H02, "curve", fn, f, H01, "curve", fn, f, H00,
"linespec", "-b;-g;-y;-r;--k", "legend", legend.c_str(),
"grid", "on", "subtitle", imgname.c_str(),
"title", "Raised cosine filter frequency response",
"xlabel", "Frequency", "aymax", 1.1,
"linespeca", "-a", ∅);
//---------------------------------------------------------------------
//[>LIBÈRE MÉMOIRE]
//---------------------------------------------------------------------
delete[] f; f=∅; delete[] H00; H00=∅;
delete[] H10; H10=∅; delete[] H05; H05=∅;
delete[] H02; H02=∅; delete[] H01; H01=∅;
imgname.clear(); imgpath.clear(); legend.clear();
//---------------------------------------------------------------------
//[<LIBÈRE MÉMOIRE]
//---------------------------------------------------------------------
scltracefe(§, ƒ, ∅);
return 0;
}
/* ƒ décorée par
le 29-11-2026 13:37:00 */
Sortie
[>..\xpl\src\sclfiltr.xpl.cpp.cosinrusf_xpl]
scl-26.11 (cwin64, clang-22.1.8) : 29-11-2026 13:37:00
<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
<< END OF DISLIN / VERSION 11.3.2 <<
<< Date : 29.11.2026 Time : 13:37:00 Pageformat: DA4L <<
<< Vectors : 2708 Warnings: 0 Fileformat: SVG <<
<< Metafile: ./srt/cosinrusf_xpl.svg <<
<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
[<..\xpl\src\sclfiltr.xpl.cpp.cosinrusf_xpl]
[..] La fonction [scl] cosinrustscl 
Code
int cosinrust_xpl(){
scltracefa(§, ƒ, ∅);
scltracefc("scl-%s (%s, %s) : %s\n\n", sclver(), sclsec(), sclver_cc(), temps_char(0));
double tc=1, ta=-5*tc, te=5*tc; int tn=501;
double *t = newtablin(tn, ta, te);
double α=1; double *h10=new double[tn];
cosinrust(t, tn, tc, α, h10);
scl::string_c legend = "α=" + num_str<double>(α);
α=0.5; double *h05=new double[tn];
cosinrust(t, tn, tc, α, h05);
legend += ";α=" + num_str<double>(α);
α=0.2; double *h02=new double[tn];
cosinrust(t, tn, tc, α, h02);
legend += ";α=" + num_str<double>(α);
α=0.1; double *h01=new double[tn];
cosinrust(t, tn, tc, α, h01);
legend += ";α=" + num_str<double>(α);
α=0; double *scwt=new double[tn];
cosinrust(t, tn, tc, α, scwt);
legend += ";α=" + num_str<double>(α) + " (sinc)";
scl::string_c imgname=scl::string_c(ƒ)+".svg",
imgpath="./srt/"+imgname;
graf_dis(imgpath.c_str(), tn, t, h10, "curve", tn, t, h05,
"curve", tn, t, h02, "curve", tn, t, h01, "curve", tn, t, scwt,
"linespec", "-b;-g;-y;-r;--k", "legend", legend.c_str(),
"grid", "on", "subtitle", imgname.c_str(),
"title", "Raised cosine filter impulse response",
"xlabel", "Cut-off period number",
"linespeca", "-a", ∅);
//---------------------------------------------------------------------
//[>LIBÈRE MÉMOIRE]
//---------------------------------------------------------------------
delete[] t; t=∅; delete[] scwt; scwt=∅;
delete[] h10; h10=∅; delete[] h05; h05=∅;
delete[] h02; h02=∅; delete[] h01; h01=∅;
imgname.clear(); imgpath.clear(); legend.clear();
//---------------------------------------------------------------------
//[<LIBÈRE MÉMOIRE]
//---------------------------------------------------------------------
scltracefe(§, ƒ, ∅);
return 0;
}
/* ƒ décorée par
le 29-11-2026 13:37:01 */
Sortie
[>..\xpl\src\sclfiltr.xpl.cpp.cosinrust_xpl]
scl-26.11 (cwin64, clang-22.1.8) : 29-11-2026 13:37:01
<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
<< END OF DISLIN / VERSION 11.3.2 <<
<< Date : 29.11.2026 Time : 13:37:01 Pageformat: DA4L <<
<< Vectors : 3725 Warnings: 0 Fileformat: SVG <<
<< Metafile: ./srt/cosinrust_xpl.svg <<
<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
[<..\xpl\src\sclfiltr.xpl.cpp.cosinrust_xpl]
[..] La fonction [scl] cosinruszscl 
Code
int cosinrusz_xpl(){
scltracefa(§, ƒ, ∅);
scltracefc("scl-%s (%s, %s) : %s\n\n", sclver(), sclsec(), sclver_cc(), temps_char(0));
int ichk, ierr=-1;
int vn = (int)107, vi;
double dvn = (double)vn;
// Dyadic correction
vn=(int)pow(2, round(ln(dvn)/ln(2))); dvn=(double)vn;
double dtechn=pow(2, 10);
int techn=(int)dtechn, techi;
scltracefc("techn = %d\n", techn);
double fe_hz = 1;
//---------------------------------------------------------------------
//[>RANDN]
//---------------------------------------------------------------------
int seed=0; double σ=1;
double *sr=new double[vn], *sj=new double[vn];
randn(vn, seed, σ, sr, sj); //🎲
double csr, srmoy=0, srvar=0;
for (vi=0;vi<vn;vi++){ srmoy+=sr[vi]; sj[vi]=0; /*signal réel!*/ }
// Noise mean
srmoy/=dvn;
// Noise variance estimation
for (vi=0;vi<vn;vi++){ csr=sr[vi]-srmoy; srvar+=csr*csr; } srvar/=dvn;
scltracefc("srvar: %lf\n", srvar);
double *freq=new double[techn], *spsd=new double[techn];
ichk = periodogramme(vn, sr, sj, techn, fe_hz, freq, spsd);
double spsdmean = 0;
for(techi=0;techi<techn;techi++){
spsdmean += pow(10, spsd[techi]/10);
} spsdmean /= dtechn;
scltracefc("spsdmean: %lf [dB(W/Hz)]\n", 10*log10(spsdmean));
scltracefc("srvar : %lf [dB]\n", 10*log10(srvar));
scl::string_c legend = "No filt.";
//---------------------------------------------------------------------
//[<RANDN]
//---------------------------------------------------------------------
// Cut-off frequencies
int fen=3;
double dfen=(double)fen, tc=dfen/fe_hz, fchz=1/(2*tc), freqc=fchz/fe_hz;
// Excess bandwidth
double α = 0.2;
int be = 2*6*10+1;
double *br=new double[be];
double *fsr=new double[vn], *fsj=new double[vn];
double *zr=newtab<double>(be-1, 0), *zj=newtab<double>(be-1, 0);
// Theoretical frequency response (-40 dB threshold)
double ff = (1-α)/(2*tc) +
α/(π*tc)*cos-1(2*pow(10,-40/20)-1);
double fd=-ff;
int fn=1001, fi; double *f=newtablin(fn, fd, ff);
double *H=new double[fn], cH;
cosinrusf(f, fn, tc, α, H);
// On corrige la reponse de la variance du bruit
for(fi=0;fi<fn;fi++){
//scltracefc("H[%d]=%lf\n", fi, Hφ); // 🔬
cH = H[fi];
f[fi]=f[fi]/fe_hz; H[fi]=10*log10(srvar*cH*cH);
}
// Coupure a 3 dB
double spsdc_3dB = 10*log10(tc*tc*srvar/2);
double freqc_3dB = α/(π*tc)*cos-1(2/√(2)-1) +
(1-α)/(2*tc);
// Coupure a 6 dB
double spsdc_6dB = 10*log10(tc*tc*srvar/2/2);
double a0 = 1;
//---------------------------------------------------------------------
//[>FILTER & SPECTRUM]
//---------------------------------------------------------------------
int tsn=1, bn=2*fen*tsn+1;
cosinrusz(dfen, tsn, α, bn, br);
scltracefc("Raised cosine filter (tap %d)\n", bn);
scltracefc(" b: ");
/*tracetab<double>(std::cout, bn, br); std::cout<<std::endl;*/
scltracetb(0, bn, br, "%lf"); scltracef("\n");
filtrz(vn, sr, 1, &a0, bn, br, fsr, zr);
double *f1spsd=newtab<double>(techn, 0);
ichk = periodogramme(vn, fsr, sj, techn, fe_hz, freq, f1spsd);
legend += ";Tap " + num_str<double>(bn);
//---------------------------------------------------------------------
tsn=2; bn=2*fen*tsn+1;
cosinrusz(dfen, tsn, α, bn, br);
scltracefc("Raised cosine filter (tap %d)\n", bn);
scltracefc(" b: ");
/*tracetab<double>(std::cout, bn, br); std::cout<<std::endl;*/
scltracetb(0, bn, br, "%lf"); scltracef("\n");
/* Initialisation du registre : */ inittab(be-1, 0, zr);
filtrz(vn, sr, 1, &a0, bn, br, fsr, zr);
double *f2spsd=newtab<double>(techn, 0);
ichk = periodogramme(vn, fsr, sj, techn, fe_hz, freq, f2spsd);
legend += ";Tap " + num_str<double>(bn);
//---------------------------------------------------------------------
tsn=3; bn=2*fen*tsn+1;
cosinrusz(dfen, tsn, α, bn, br);
scltracefc("Raised cosine filter (tap %d)\n", bn);
scltracefc(" b: ");
/*tracetab<double>(std::cout, bn, br); std::cout<<std::endl;*/
scltracetb(0, bn, br, "%lf"); scltracef("\n");
/* Initialisation du registre : */ inittab(be-1, 0, zr);
filtrz(vn, sr, 1, &a0, bn, br, fsr, zr);
double *f3spsd=newtab<double>(techn, 0);
ichk = periodogramme(vn, fsr, sj, techn, fe_hz, freq, f3spsd);
legend += ";Tap " + num_str<double>(bn);
//---------------------------------------------------------------------
tsn=4; bn=2*fen*tsn+1;
cosinrusz(dfen, tsn, α, bn, br);
scltracefc("Raised cosine filter (tap %d)\n", bn);
scltracefc(" b: ");
/*tracetab<double>(std::cout, bn, br); std::cout<<std::endl;*/
scltracetb(0, bn, br, "%lf"); scltracef("\n");
/* Initialisation du registre : */ inittab(be-1, 0, zr);
filtrz(vn, sr, 1, &a0, bn, br, fsr, zr);
double *f4spsd=newtab<double>(techn, 0);
ichk = periodogramme(vn, fsr, sj, techn, fe_hz, freq, f4spsd);
legend += ";Tap " + num_str<double>(bn);
//---------------------------------------------------------------------
tsn=5; bn=2*fen*tsn+1;
cosinrusz(dfen, tsn, α, bn, br);
scltracefc("Raised cosine filter (tap %d)\n", bn);
scltracefc(" b: ");
/*tracetab<double>(std::cout, bn, br); std::cout<<std::endl;*/
scltracetb(0, bn, br, "%lf"); scltracef("\n");
/* Initialisation du registre : */ inittab(be-1, 0, zr);
filtrz(vn, sr, 1, &a0, bn, br, fsr, zr);
double *f5spsd=newtab<double>(techn, 0);
ichk = periodogramme(vn, fsr, sj, techn, fe_hz, freq, f5spsd);
legend += ";Tap " + num_str<double>(bn);
//---------------------------------------------------------------------
tsn=10; bn=2*fen*tsn+1;
cosinrusz(dfen, tsn, α, bn, br);
scltracefc("Raised cosine filter (tap %d)\n", bn);
scltracefc(" b: ");
/*tracetab<double>(std::cout, bn, br); std::cout<<std::endl;*/
scltracetb(0, bn, br, "%lf"); scltracef("\n");
/* Initialisation du registre : */ inittab(be-1, 0, zr);
filtrz(vn, sr, 1, &a0, bn, br, fsr, zr);
double *f10spsd=newtab<double>(techn, 0);
ichk = periodogramme(vn, fsr, sj, techn, fe_hz, freq, f10spsd);
legend += ";Tap " + num_str<double>(bn);
//---------------------------------------------------------------------
//[<FILTER & SPECTRUM]
//---------------------------------------------------------------------
scl::string_c imgname=std::string(ƒ)+".svg",
imgpath="./srt/"+imgname;
legend += ";Cut-off 3;Cut-off 6;Theory";
ichk = graf_dis(imgpath.c_str(), techn, freq, spsd,
"curve", techn, freq, f1spsd,
"curve", techn, freq, f2spsd,
"curve", techn, freq, f3spsd,
"curve", techn, freq, f4spsd,
"curve", techn, freq, f5spsd,
"curve", techn, freq, f10spsd,
"curve", 1, &freqc_3dB, &spsdc_3dB,
"curve", 1, &freqc, &spsdc_6dB,
"curve", fn, f, H,
"linespec", "-u;-b;-l;-t;-g;-e;-r;kx;kd;-k",
"legend", legend.c_str(), "linespeca", "-a",
"grid", "on", "legcorn", "urp",
"title", "Raised cosine filtering",
"subtitlex", imgname.c_str(),
"xlabel", "$f/f_e$", "titlex", "PSD $[dB_{W/Hz}]$", ∅);
if (ichk<0){
std::cerr << "[<" << § << "." << ƒ << ">] "
"graf_dis() error!" << std::endl;
return ierr;
} ierr--;
//---------------------------------------------------------------------
//[>BANC DE FILTRES]
//---------------------------------------------------------------------
// nombre de filtres
int filtn=6, filti;
double seuil_db = -6; // seuil de recouvrement
bn = 0; // demande de calcul du nombre de coefficients
double ***b = cosinrusz(filtn, tsn, α, seuil_db, &dfen, &bn);
scltracefc("dfen=%lf, bn=%d, be=%d\n", dfen, bn, be);
if(bn>be){
scltracerr(§, ƒ, ∅,
"pas assez de coefficients alloues %d>%d!\n", bn, be);
scltracefe(§, ƒ, ∅);
exit(ierr);
} ierr--;
double **fpsd=newmat<double>(filtn, techn, 0),
**ffreq=newmat<double>(filtn, techn, 0);
legend.clear(); legend = "Non filtr.";
for(filti=0;filti<filtn;filti++){
/* Initialisation du registre : */
inittab<double>(bn-1, 0, zr); inittab<double>(bn-1, 0, zj);
/* Filtrage : */
filtrz(vn, sr, sj, bn, b[filti][0], b[filti][1], fsr, fsj, zr, zj);
ichk = periodogramme(vn, fsr, fsj, techn, fe_hz,
ffreq[filti], fpsd[filti]);
legend += ";Fitre " + num_str<int>(filti);
}
imgname.clear(); imgname=scl::string_c(ƒ)+"-bf.svg";
imgpath.clear(); imgpath="./srt/"+imgname;
int *mn=newtab<int>(filtn, techn);
ichk = graf_dis(imgpath.c_str(), techn, freq, spsd,
"curvex", filtn, mn, ffreq, fpsd,
"linespec", "-u;-b;-l;-t;-g;-e;-r",
"legend", legend.c_str(),
"grid", "on", "legcorn", "urp", "linespeca", "-a",
"title", "Banc de filtres en cosinus sureleve",
"subtitlex", imgname.c_str(),
"xlabel", "$f/f_e$", "titlex", "DSP $[dB_{W/Hz}]$", ∅);
//---------------------------------------------------------------------
//[<BANC DE FILTRES]
//---------------------------------------------------------------------
//---------------------------------------------------------------------
//[>LIBÈRE MÉMOIRE]
//---------------------------------------------------------------------
delete[] sr; sr=∅; delete[] sj; sj=∅;
delete[] freq; freq=∅; delete[] spsd; spsd=∅;
delete[] br; br= ∅; delete[] fsr; fsr=∅;
delete[] zr; zr=∅; delete[] f1spsd; f1spsd=∅;
delete[] f2spsd; f2spsd=∅; delete[] f3spsd; f3spsd=∅;
delete[] f4spsd; f4spsd=∅; delete[] f5spsd; f5spsd=∅;
delete[] f10spsd; f10spsd=∅;
imgname.clear(); imgpath.clear(); legend.clear();
//---------------------------------------------------------------------
//[<LIBÈRE MÉMOIRE]
//---------------------------------------------------------------------
scltracefe(§, ƒ, ∅);
return 0;
}
/* ƒ décorée par
le 29-11-2026 13:37:01 */
Sortie
[>..\xpl\src\sclfiltr.xpl.cpp.cosinrusz_xpl]
scl-26.11 (cwin64, clang-22.1.8) : 29-11-2026 13:37:01
techn = 1024
srvar: 0.999451
spsdmean: -0.002383 [dB(W/Hz)]
srvar : -0.002383 [dB]
Raised cosine filter (tap 7)
b: { 0.000000, 0.406667, 0.823563, 1.000000, 0.823563, 0.406667, 0.000000 }
Raised cosine filter (tap 13)
b: { -0.000000, -0.148859, -0.193335, 0.000000, 0.406667, 0.823563, 1.000000, 0.823563, 0.406667, 0.000000, -0.193335, -0.148859, -0.000000 }
Raised cosine filter (tap 19)
b: { 0.000000, 0.078427, 0.095813, -0.000000, -0.148859, -0.193335, 0.000000, 0.406667, 0.823563, 1.000000, 0.823563, 0.406667, 0.000000, -0.193335, -0.148859, -0.000000, 0.095813, 0.078427, 0.000000 }
Raised cosine filter (tap 25)
b: { -0.000000, -0.043702, -0.053164, 0.000000, 0.078427, 0.095813, -0.000000, -0.148859, -0.193335, 0.000000, 0.406667, 0.823563, 1.000000, 0.823563, 0.406667, 0.000000, -0.193335, -0.148859, -0.000000, 0.095813, 0.078427, 0.000000, -0.053164, -0.043702, -0.000000 }
Raised cosine filter (tap 31)
b: { 0.000000, 0.023257, 0.028993, -0.000000, -0.043702, -0.053164, 0.000000, 0.078427, 0.095813, -0.000000, -0.148859, -0.193335, 0.000000, 0.406667, 0.823563, 1.000000, 0.823563, 0.406667, 0.000000, -0.193335, -0.148859, -0.000000, 0.095813, 0.078427, 0.000000, -0.053164, -0.043702, -0.000000, 0.028993, 0.023257, 0.000000 }
Raised cosine filter (tap 61)
b: { 0.000000, 0.001999, 0.002086, -0.000000, -0.001932, -0.001636, 0.000000, 0.000447, -0.000517, 0.000000, 0.003383, 0.005376, -0.000000, -0.010740, -0.014237, 0.000000, 0.023257, 0.028993, -0.000000, -0.043702, -0.053164, 0.000000, 0.078427, 0.095813, -0.000000, -0.148859, -0.193335, 0.000000, 0.406667, 0.823563, 1.000000, 0.823563, 0.406667, 0.000000, -0.193335, -0.148859, -0.000000, 0.095813, 0.078427, 0.000000, -0.053164, -0.043702, -0.000000, 0.028993, 0.023257, 0.000000, -0.014237, -0.010740, -0.000000, 0.005376, 0.003383, 0.000000, -0.000517, 0.000447, 0.000000, -0.001636, -0.001932, -0.000000, 0.002086, 0.001999, 0.000000 }
<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
<< END OF DISLIN / VERSION 11.3.2 <<
<< Date : 29.11.2026 Time : 13:37:34 Pageformat: DA4L <<
<< Vectors : 9419 Warnings: 0 Fileformat: SVG <<
<< Metafile: ./srt/cosinrusz_xpl.svg <<
<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
dfen=5.998186, bn=121, be=121
<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
<< END OF DISLIN / VERSION 11.3.2 <<
<< Date : 29.11.2026 Time : 13:38:29 Pageformat: DA4L <<
<< Vectors : 8306 Warnings: 0 Fileformat: SVG <<
<< Metafile: ./srt/cosinrusz_xpl-bf.svg <<
<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
[<..\xpl\src\sclfiltr.xpl.cpp.cosinrusz_xpl]
[..] La fonction [scl] filtrzscl 
Code
int filtrz_xpl(){
scltracefa(§, ƒ, ∅);
scltracefc("scl-%s (%s, %s) : %s\n\n", sclver(), sclsec(), sclver_cc(), temps_char(0));
int ichk, ierr=-1;
int vn = (int)107, vi;
double dvn = (double)vn;
// Dyadic correction
vn = (int)pow(2, round(ln(dvn)/ln(2)));
double dtechn=pow(2, 10);
int techn=(int)dtechn;
double fe_hz = 1;
//---------------------------------------------------------------------
//[>RANDN]
//---------------------------------------------------------------------
int seed=0; double σ=1;
double *sr=new double[vn], *sj=new double[vn];
randn(vn, seed, σ, sr, sj); //🎲
for (vi=0;vi<vn;vi++){ sj[vi] = 0; /*signal réel!*/ }
double *freq=new double[techn], *spsd=new double[techn];
ichk = periodogramme(vn, sr, sj, techn, fe_hz, freq, spsd);
//double spsdmax = max<double>(techn, spsd);
//---------------------------------------------------------------------
//[<RANDN]
//---------------------------------------------------------------------
// Cut-off frequency
//double fchz = (fe/2.0)/2.0;
double a0=1, *b=new double[7];
double *fs = new double[vn], *z = new double[vn];
//---------------------------------------------------------------------
//[>FILTER & SPECTRUM]
//---------------------------------------------------------------------
int on=1, oo=on+1, oi; double doo=(double)oo;
for(oi=0;oi<oo;oi++){ b[oi]=1/doo; }
scltracefc("Window low pass filter (order %d)\n", on);
filtrz(vn, sr, 1, &a0, oo, b, fs, z);
double *f1spsd=newtab<double>(techn, 0);
ichk = periodogramme(vn, fs, sj, techn, fe_hz, freq, f1spsd);
//---------------------------------------------------------------------
on=2; oo=on+1; doo=(double)oo;
for(oi=0;oi<oo;oi++){ b[oi]=1/doo; }
scltracefc("Window low pass filter (order %d)\n", on);
filtrz(vn, sr, 1, &a0, oo, b, fs, z);
double *f2spsd=newtab<double>(techn, 0);
ichk = periodogramme(vn, fs, sj, techn, fe_hz, freq, f2spsd);
//---------------------------------------------------------------------
on=3; oo=on+1; doo=(double)oo;
for(oi=0;oi<oo;oi++){ b[oi]=1/doo; }
scltracefc("Window low pass filter (order %d)\n", on);
filtrz(vn, sr, 1, &a0, oo, b, fs, z);
double *f3spsd=newtab<double>(techn, 0);
ichk = periodogramme(vn, fs, sj, techn, fe_hz, freq, f3spsd);
//---------------------------------------------------------------------
on=4; oo=on+1; doo=(double)oo;
for(oi=0;oi<oo;oi++){ b[oi]=1/doo; }
scltracefc("Window low pass filter (order %d)\n", on);
filtrz(vn, sr, 1, &a0, oo, b, fs, z);
double *f4spsd=newtab<double>(techn, 0);
ichk = periodogramme(vn, fs, sj, techn, fe_hz, freq, f4spsd);
//---------------------------------------------------------------------
on=5; oo=on+1; doo=(double)oo;
for(oi=0;oi<oo;oi++){ b[oi]=1/doo; }
scltracefc("Window low pass filter (order %d)\n", on);
filtrz(vn, sr, 1, &a0, oo, b, fs, z);
double *f5spsd=newtab<double>(techn, 0);
ichk = periodogramme(vn, fs, sj, techn, fe_hz, freq, f5spsd);
//---------------------------------------------------------------------
on=6; oo=on+1; doo=(double)oo;
for(oi=0;oi<oo;oi++){ b[oi]=1/doo; }
scltracefc("Window low pass filter (order %d)\n", on);
filtrz(vn, sr, 1, &a0, oo, b, fs, z);
double *f6spsd=newtab<double>(techn, 0);
ichk = periodogramme(vn, fs, sj, techn, fe_hz, freq, f6spsd);
//---------------------------------------------------------------------
//[<FILTER & SPECTRUM]
//---------------------------------------------------------------------
std::string imgname=std::string(ƒ)+".svg",
imgpath="./srt/"+imgname;
ichk = graf_dis(imgpath.c_str(), techn, freq, spsd,
"curve", techn, freq, f1spsd,
"curve", techn, freq, f2spsd,
"curve", techn, freq, f3spsd,
"curve", techn, freq, f4spsd,
"curve", techn, freq, f5spsd,
"curve", techn, freq, f6spsd,
"linespec", "-a;-b;-l;-t;-g;-e;-r",
"legend",
"No filt.;Order 1;Order 2;Order 3;Order 4;Order 5;Order 6",
"grid", "on", "legcorn", "urp",
"title", "Window low pass filtering",
"subtitlex", imgname.c_str(), "linespeca", "-a",
"xlabel", "$f/f_e$", "ylabel", "$[dB_{W/Hz}]$",
"aymax", 1, /*"aymin", (spsdmax-60.0),*/ ∅);
if (ichk<0){
std::cerr << "[<" << § << "." << ƒ << ">] " <<
"graf_dis() error!" << std::endl;
return ierr;
} ierr--;
//---------------------------------------------------------------------
//[>LIBÈRE MÉMOIRE]
//---------------------------------------------------------------------
delete[] sj; sj=∅; delete[] sr; sr=∅;
delete[] freq; freq=∅; delete[] spsd; spsd=∅;
delete[] f1spsd; f1spsd=∅; delete[] f2spsd; f2spsd=∅;
delete[] f3spsd; f3spsd=∅; delete[] f4spsd; f4spsd=∅;
delete[] f5spsd; f5spsd=∅; delete[] f6spsd; f6spsd=∅;
//---------------------------------------------------------------------
//[<LIBÈRE MÉMOIRE]
//---------------------------------------------------------------------
scltracefe(§, ƒ, ∅);
return 0;
}
/* ƒ décorée par
le 29-11-2026 13:38:30 */
Sortie
[>..\xpl\src\sclfiltr.xpl.cpp.filtrz_xpl]
scl-26.11 (cwin64, clang-22.1.8) : 29-11-2026 13:38:30
Window low pass filter (order 1)
Window low pass filter (order 2)
Window low pass filter (order 3)
Window low pass filter (order 4)
Window low pass filter (order 5)
Window low pass filter (order 6)
<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
<< END OF DISLIN / VERSION 11.3.2 <<
<< Date : 29.11.2026 Time : 13:38:48 Pageformat: DA4L <<
<< Vectors : 8727 Warnings: 0 Fileformat: SVG <<
<< Metafile: ./srt/filtrz_xpl.svg <<
<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
[<..\xpl\src\sclfiltr.xpl.cpp.filtrz_xpl]
[..] La fonction [scl] filtrztfrscl 
Code
int filtrztfr_xpl() {
scltracefa(§, ƒ, ∅);
scltracefc("scl-%s (%s, %s) : %s\n\n", sclver(), sclsec(), sclver_cc(), temps_char(0));
int echn=(int)106, echi;
double *xr=new double[echn], *xj=new double[echn];
double *yr=new double[echn], *yj=new double[echn];
for (echi=0; echi<echn; echi++) {
xr[echi]=(double)rand(); xj[echi]=(double)rand(); //🎲
}
int filtn=100, filtm=filtn-1, filti;
double *dbn=newtablin(filtn, 10, 103); double a0=1;
int bn=(int)dbn[filtm], bi;
double *br = new double[bn];
for (bi=0;bi<bn;bi++){ br[bi]=1; }
double *filtrtfrms=new double[filtn], *filtrms=new double[filtn];
double *zr=new double[bn-1];
for (filti=0;filti<filtn;filti++) {
bn = (int)dbn[filti];
tic();
filtrztfr(echn, xr, xj, bn, br, ∅, yr, yj);
filtrtfrms[filti] = tac();
tic();
filtrz(echn, xr, 1, &a0, bn, br, yr, zr);
filtrms[filti] = tac();
scltracefc("filtrtfrms[%d]=%lf [ms], filtrms[%d]=%lf [ms]\n",
filti, filtrtfrms[filti], filti, filtrms[filti]);
}
scl::string_c imgname=scl::string_c(ƒ)+".svg",
imgpath="./srt/"+imgname;
graf_dis(imgpath.c_str(), filtn, dbn, filtrtfrms, "curve", filtn, dbn, filtrms,
"grid", "on", "linespec", "-l;-h",
"legend", "<<Fast>> Filter;Discrete Filter", "legcorn", "lra",
"xlabel", "Filter length", "ylabel", "[ms]",
"title", "Filter execution time", "subtitlex", imgname.c_str(),
"linespeca", "-a", ∅);
//---------------------------------------------------------------------
//[>LIBÈRE MÉMOIRE]
//---------------------------------------------------------------------
imgpath.clear(); imgname.clear();
delete[] filtrms; filtrms=∅; delete[] filtrtfrms; filtrtfrms=∅;
delete[] br; br=∅; delete[] dbn; dbn=∅;
delete[] yj; yj=∅; delete[] yr; yr=∅;
delete[] xj; xj=∅; delete[] xr; xr=∅;
//---------------------------------------------------------------------
//[<LIBÈRE MÉMOIRE]
//---------------------------------------------------------------------
scltracefe(§, ƒ, ∅);
return 0;
}
/* ƒ décorée par
le 29-11-2026 13:38:49 */
Sortie
[>..\xpl\src\sclfiltr.xpl.cpp.filtrztfr_xpl]
scl-26.11 (cwin64, clang-22.1.8) : 29-11-2026 13:38:49
filtrtfrms[0]=1445.636700 [ms], filtrms[0]=29.935800 [ms]
filtrtfrms[1]=1407.491500 [ms], filtrms[1]=62.239700 [ms]
filtrtfrms[2]=1382.889400 [ms], filtrms[2]=93.479900 [ms]
filtrtfrms[3]=1369.250400 [ms], filtrms[3]=133.212900 [ms]
filtrtfrms[4]=1369.935800 [ms], filtrms[4]=157.872800 [ms]
filtrtfrms[5]=1351.607700 [ms], filtrms[5]=189.698200 [ms]
filtrtfrms[6]=1352.238200 [ms], filtrms[6]=221.333700 [ms]
filtrtfrms[7]=1360.562700 [ms], filtrms[7]=260.612100 [ms]
filtrtfrms[8]=1370.672800 [ms], filtrms[8]=288.819900 [ms]
filtrtfrms[9]=1385.431000 [ms], filtrms[9]=320.745000 [ms]
filtrtfrms[10]=1373.903700 [ms], filtrms[10]=353.547800 [ms]
filtrtfrms[11]=1368.213800 [ms], filtrms[11]=382.662700 [ms]
filtrtfrms[12]=1372.940100 [ms], filtrms[12]=414.836400 [ms]
filtrtfrms[13]=1390.074100 [ms], filtrms[13]=444.663500 [ms]
filtrtfrms[14]=1399.182500 [ms], filtrms[14]=514.955900 [ms]
filtrtfrms[15]=1440.243100 [ms], filtrms[15]=517.641600 [ms]
filtrtfrms[16]=1392.286700 [ms], filtrms[16]=545.977700 [ms]
filtrtfrms[17]=1400.597100 [ms], filtrms[17]=578.783500 [ms]
filtrtfrms[18]=1367.960900 [ms], filtrms[18]=611.362100 [ms]
filtrtfrms[19]=1355.113900 [ms], filtrms[19]=640.837000 [ms]
filtrtfrms[20]=1352.678500 [ms], filtrms[20]=673.408600 [ms]
filtrtfrms[21]=1375.814400 [ms], filtrms[21]=701.659900 [ms]
filtrtfrms[22]=1355.657300 [ms], filtrms[22]=736.700400 [ms]
filtrtfrms[23]=1373.241300 [ms], filtrms[23]=769.561400 [ms]
filtrtfrms[24]=1368.691100 [ms], filtrms[24]=791.437300 [ms]
filtrtfrms[25]=1354.096900 [ms], filtrms[25]=818.912500 [ms]
filtrtfrms[26]=1405.819900 [ms], filtrms[26]=850.995500 [ms]
filtrtfrms[27]=1343.221000 [ms], filtrms[27]=882.692500 [ms]
filtrtfrms[28]=1376.623400 [ms], filtrms[28]=915.484400 [ms]
filtrtfrms[29]=1452.662800 [ms], filtrms[29]=965.203500 [ms]
filtrtfrms[30]=1354.803400 [ms], filtrms[30]=992.066400 [ms]
filtrtfrms[31]=1360.130400 [ms], filtrms[31]=1025.209000 [ms]
filtrtfrms[32]=1355.737500 [ms], filtrms[32]=1046.422700 [ms]
filtrtfrms[33]=1338.937100 [ms], filtrms[33]=1072.164200 [ms]
filtrtfrms[34]=1380.423700 [ms], filtrms[34]=1109.155400 [ms]
filtrtfrms[35]=1362.014400 [ms], filtrms[35]=1145.491300 [ms]
filtrtfrms[36]=1389.815500 [ms], filtrms[36]=1170.624800 [ms]
filtrtfrms[37]=1348.353900 [ms], filtrms[37]=1214.186700 [ms]
filtrtfrms[38]=1357.049300 [ms], filtrms[38]=1245.046200 [ms]
filtrtfrms[39]=1349.236000 [ms], filtrms[39]=1277.471400 [ms]
filtrtfrms[40]=1353.612200 [ms], filtrms[40]=1293.489800 [ms]
filtrtfrms[41]=1378.839300 [ms], filtrms[41]=1343.810700 [ms]
filtrtfrms[42]=1352.192500 [ms], filtrms[42]=1377.212100 [ms]
filtrtfrms[43]=1350.135700 [ms], filtrms[43]=1411.967100 [ms]
filtrtfrms[44]=1351.231700 [ms], filtrms[44]=1437.811600 [ms]
filtrtfrms[45]=1348.468800 [ms], filtrms[45]=1469.691000 [ms]
filtrtfrms[46]=1364.042600 [ms], filtrms[46]=1499.127100 [ms]
filtrtfrms[47]=1340.076400 [ms], filtrms[47]=1513.797400 [ms]
filtrtfrms[48]=1379.334500 [ms], filtrms[48]=1544.053600 [ms]
filtrtfrms[49]=1361.061700 [ms], filtrms[49]=1575.031300 [ms]
filtrtfrms[50]=1363.287300 [ms], filtrms[50]=1608.574200 [ms]
filtrtfrms[51]=1377.460900 [ms], filtrms[51]=1640.477700 [ms]
filtrtfrms[52]=1343.032500 [ms], filtrms[52]=1674.632800 [ms]
filtrtfrms[53]=1365.730600 [ms], filtrms[53]=1709.436100 [ms]
filtrtfrms[54]=1356.629800 [ms], filtrms[54]=1750.498800 [ms]
filtrtfrms[55]=1386.427600 [ms], filtrms[55]=1784.201300 [ms]
filtrtfrms[56]=1349.226400 [ms], filtrms[56]=1836.110600 [ms]
filtrtfrms[57]=1359.967300 [ms], filtrms[57]=1858.929200 [ms]
filtrtfrms[58]=1353.404500 [ms], filtrms[58]=1913.751200 [ms]
filtrtfrms[59]=1360.406200 [ms], filtrms[59]=1942.038400 [ms]
filtrtfrms[60]=1354.732500 [ms], filtrms[60]=1973.200600 [ms]
filtrtfrms[61]=1388.593300 [ms], filtrms[61]=1971.190100 [ms]
filtrtfrms[62]=1383.571200 [ms], filtrms[62]=2004.808000 [ms]
filtrtfrms[63]=1366.256600 [ms], filtrms[63]=2039.426300 [ms]
filtrtfrms[64]=1398.503900 [ms], filtrms[64]=2072.954800 [ms]
filtrtfrms[65]=1341.659900 [ms], filtrms[65]=2108.829200 [ms]
filtrtfrms[66]=1364.127600 [ms], filtrms[66]=2154.229900 [ms]
filtrtfrms[67]=1376.590900 [ms], filtrms[67]=2169.968700 [ms]
filtrtfrms[68]=1374.896300 [ms], filtrms[68]=2205.104300 [ms]
filtrtfrms[69]=1375.309300 [ms], filtrms[69]=2219.883900 [ms]
filtrtfrms[70]=1368.910600 [ms], filtrms[70]=2265.495000 [ms]
filtrtfrms[71]=1361.364300 [ms], filtrms[71]=2302.942300 [ms]
filtrtfrms[72]=1373.964800 [ms], filtrms[72]=2332.946700 [ms]
filtrtfrms[73]=1343.292600 [ms], filtrms[73]=2366.726300 [ms]
filtrtfrms[74]=1358.862200 [ms], filtrms[74]=2406.101700 [ms]
filtrtfrms[75]=1353.257300 [ms], filtrms[75]=2459.680200 [ms]
filtrtfrms[76]=1387.649500 [ms], filtrms[76]=2491.214100 [ms]
filtrtfrms[77]=1328.652200 [ms], filtrms[77]=2518.715100 [ms]
filtrtfrms[78]=1353.106700 [ms], filtrms[78]=2545.261700 [ms]
filtrtfrms[79]=1457.816100 [ms], filtrms[79]=2585.983000 [ms]
filtrtfrms[80]=1351.883900 [ms], filtrms[80]=2612.504200 [ms]
filtrtfrms[81]=1367.383600 [ms], filtrms[81]=2644.182400 [ms]
filtrtfrms[82]=1368.061800 [ms], filtrms[82]=2661.699100 [ms]
filtrtfrms[83]=1332.682500 [ms], filtrms[83]=2704.163900 [ms]
filtrtfrms[84]=1362.671800 [ms], filtrms[84]=2718.407600 [ms]
filtrtfrms[85]=1360.754200 [ms], filtrms[85]=2755.277800 [ms]
filtrtfrms[86]=1397.681300 [ms], filtrms[86]=2787.622300 [ms]
filtrtfrms[87]=1383.014200 [ms], filtrms[87]=2821.341100 [ms]
filtrtfrms[88]=1375.240600 [ms], filtrms[88]=2884.996700 [ms]
filtrtfrms[89]=1368.480600 [ms], filtrms[89]=2850.712900 [ms]
filtrtfrms[90]=1328.501800 [ms], filtrms[90]=2826.916400 [ms]
filtrtfrms[91]=1334.022400 [ms], filtrms[91]=2861.291000 [ms]
filtrtfrms[92]=1317.952700 [ms], filtrms[92]=3017.814000 [ms]
filtrtfrms[93]=1325.382300 [ms], filtrms[93]=2932.873400 [ms]
filtrtfrms[94]=1312.762700 [ms], filtrms[94]=2968.420500 [ms]
filtrtfrms[95]=1311.871100 [ms], filtrms[95]=3004.504900 [ms]
filtrtfrms[96]=1312.520600 [ms], filtrms[96]=3037.364600 [ms]
filtrtfrms[97]=1324.709900 [ms], filtrms[97]=3133.246300 [ms]
filtrtfrms[98]=1320.906600 [ms], filtrms[98]=3088.519400 [ms]
filtrtfrms[99]=1304.127600 [ms], filtrms[99]=3104.739900 [ms]
<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
<< END OF DISLIN / VERSION 11.3.2 <<
<< Date : 29.11.2026 Time : 13:43:46 Pageformat: DA4L <<
<< Vectors : 1513 Warnings: 0 Fileformat: SVG <<
<< Metafile: ./srt/filtrztfr_xpl.svg <<
<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
[<..\xpl\src\sclfiltr.xpl.cpp.filtrztfr_xpl]
[..] La fonction [scl] gaussmsktscl 
Code
int gaussmskt_xpl(){
scltracefa(§, ƒ, ∅);
scltracefc("scl-%s (%s, %s) : %s\n\n", sclver(), sclsec(), sclver_cc(), temps_char(0));
/* Temps symbole : */ double Ts = 1;
/* Facteur fc*Ts : */ double bt = 1;
/* Freq. de coupure : */ double fc = bt/Ts;
double ta=-5/fc, te=5/fc; int tn=1001;
double *t = newtablin(tn, ta, te);
bt=10; fc=bt/Ts; double *g100=new double[tn];
gaussmskt(tn, t, fc, Ts, g100);
scl::string_c legend = "BT=" + num_str<double>(bt);
bt=1; fc=bt/Ts; double *g010=new double[tn];
gaussmskt(tn, t, fc, Ts, g010);
legend += ";BT=" + num_str<double>(bt);
bt=0.5; fc=bt/Ts; double *g005=new double[tn];
gaussmskt(tn, t, fc, Ts, g005);
legend += ";BT=" + num_str<double>(bt);
bt=0.3; fc=bt/Ts; double *g003=new double[tn];
gaussmskt(tn, t, fc, Ts, g003);
legend += ";BT=" + num_str<double>(bt);
bt=0.2; fc=bt/Ts; double *g002=new double[tn];
gaussmskt(tn, t, fc, Ts, g002);
legend += ";BT=" + num_str<double>(bt);
bt=0.1; fc=bt/Ts; double *g001=new double[tn];
gaussmskt(tn, t, fc, Ts, g001);
legend += ";BT=" + num_str<double>(bt);
scl::string_c imgname=scl::string_c(ƒ)+".svg",
imgpath="./srt/"+imgname;
graf_dis(imgpath.c_str(), tn, t, g100, "curve", tn, t, g010,
"curve", tn, t, g005, "curve", tn, t, g003,
"curve", tn, t, g002, "curve", tn, t, g001,
"linespec", "-b;-l;-g;-y;-r;-k", "legend", legend.c_str(),
"grid", "on", "subtitle", imgname.c_str(),
"title", "Gaussian filter impulse response",
"xlabel", "Time", "linespeca", "-a", ∅);
//---------------------------------------------------------------------
//[>LIBÈRE MÉMOIRE]
//---------------------------------------------------------------------
delete[] t; t=∅; delete[] g010; g010=∅;
delete[] g005; g005=∅; delete[] g003; g003=∅;
delete[] g002; g002=∅; delete[] g001; g001=∅;
imgname.clear(); imgpath.clear(); legend.clear();
//---------------------------------------------------------------------
//[<LIBÈRE MÉMOIRE]
//---------------------------------------------------------------------
scltracefe(§, ƒ, ∅);
return 0;
}
/* ƒ décorée par
le 29-11-2026 13:43:47 */
Sortie
[>..\xpl\src\sclfiltr.xpl.cpp.gaussmskt_xpl]
scl-26.11 (cwin64, clang-22.1.8) : 29-11-2026 13:43:47
<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
<< END OF DISLIN / VERSION 11.3.2 <<
<< Date : 29.11.2026 Time : 13:43:47 Pageformat: DA4L <<
<< Vectors : 6828 Warnings: 0 Fileformat: SVG <<
<< Metafile: ./srt/gaussmskt_xpl.svg <<
<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
[<..\xpl\src\sclfiltr.xpl.cpp.gaussmskt_xpl]
[..] La fonction [scl] gaussmskzscl 
Code
int gaussmskz_xpl(){
scltracefa(§, ƒ, ∅);
scltracefc("scl-%s (%s, %s) : %s\n\n", sclver(), sclsec(), sclver_cc(), temps_char(0));
int ichk, ierr=-1;
int vn = (int)107, vi;
double dvn = (double)vn;
// Dyadic correction
vn=(int)pow(2, round(ln(dvn)/ln(2))); dvn=(double)vn;
double dtechn=pow(2, 10);
int techn=(int)dtechn, techi;
/* Fréquence d'échantillonnage : */ double fe_hz = 1;
//---------------------------------------------------------------------
//[>RANDN]
//---------------------------------------------------------------------
int seed=0; double σ=1;
double *sr=new double[vn], *sj=new double[vn];
randn(vn, seed, σ, sr, sj); //🎲
double csr, srmoy=0, srvar=0;
for (vi=0;vi<vn;vi++){
csr=sr[vi]; srmoy+=csr;
sj[vi] = 0; // real signal!
}
// Noise mean
srmoy/=dvn;
// Noise variance estimation
for (vi=0;vi<vn;vi++){ csr=sr[vi]-srmoy; srvar+=csr*csr; } srvar/=dvn;
scltracefc("srvar: %lf\n", srvar);
double *freq=new double[techn], *spsd=new double[techn];
ichk = periodogramme(vn, sr, sj, techn, fe_hz, freq, spsd);
double spsdmean = 0;
for(techi=0;techi<techn;techi++){
spsdmean += pow(10, spsd[techi]/10);
} spsdmean /= dtechn;
scltracefc("spsdmean: %lf [dB(W/Hz)]\n", 10*log10(spsdmean));
scltracefc("srvar : %lf [dB]\n", 10*log10(srvar));
//---------------------------------------------------------------------
//[<RANDN]
//---------------------------------------------------------------------
// Surechantillonnage fe/fs
int fen=3; //double dfen=(double)fen;
// Frequence symbole
//double fshz = fehz/dfen;
// fc*Ts
double bt = 0.3; // cf GSM
// Frequence de coupure
//double fchz = bt*fshz;
double *fs=new double[vn], *z=newtab<double>(vn, 0);
//---------------------------------------------------------------------
//[>RÉPONSE THÉORIQUE]
//---------------------------------------------------------------------
// 📝 + coupure a 3 dB
//---------------------------------------------------------------------
//[<RÉPONSE THÉORIQUE]
//---------------------------------------------------------------------
//---------------------------------------------------------------------
//[>FILTER & SPECTRUM]
//---------------------------------------------------------------------
/* bn max */ int be=9;
int bn=3; double *b=new double[be];
gaussmskz(fen, bt, bn, b);
scltracefc("Gaussian MSK filter (tap %d)\n", bn);
scltracefc(" b: ");
/*tracetab<double>(std::cout, bn, b); std::cout<<std::endl;*/
scltracetb(0, bn, b, "%lf"); scltracef("\n");
filtrz(vn, sr, bn, b, fs, z);
double *f1spsd=newtab<double>(techn, 0);
ichk = periodogramme(vn, fs, sj, techn, fe_hz, freq, f1spsd);
scl::string_c legend = "Tap " + num_str<int>(bn);
//---------------------------------------------------------------------
bn=5; gaussmskz(fen, bt, bn, b);
scltracefc("Gaussian MSK filter (tap %d)\n", bn);
scltracefc(" b: ");
/*tracetab<double>(std::cout, bn, b); std::cout<<std::endl;*/
scltracetb(0, bn, b, "%lf"); scltracef("\n");
/* Initialisation du registre : */ inittab(vn, 0, z);
filtrz(vn, sr, bn, b, fs, z);
double *f2spsd=newtab<double>(techn, 0);
ichk = periodogramme(vn, fs, sj, techn, fe_hz, freq, f2spsd);
legend += ";Tap " + num_str<int>(bn);
//---------------------------------------------------------------------
bn=9; gaussmskz(fen, bt, bn, b);
scltracefc("Gaussian MSK filter (tap %d)\n", bn);
scltracefc(" b: ");
/*tracetab<double>(std::cout, bn, b); std::cout<<std::endl;*/
scltracetb(0, bn, b, "%lf"); scltracef("\n");
/* Initialisation du registre : */ inittab(vn, 0, z);
filtrz(vn, sr, bn, b, fs, z);
double *f3spsd=newtab<double>(techn, 0);
ichk = periodogramme(vn, fs, sj, techn, fe_hz, freq, f3spsd);
legend += ";Tap " + num_str<int>(bn);
//---------------------------------------------------------------------
//[<FILTER & SPECTRUM]
//---------------------------------------------------------------------
legend = "Bruit blanc;" + legend;
scl::string_c imgname=scl::string_c(ƒ)+".svg",
imgpath="./srt/"+imgname;
ichk = graf_dis(imgpath.c_str(), techn, freq, spsd,
"curve", techn, freq, f1spsd, "curve", techn, freq, f2spsd,
"curve", techn, freq, f3spsd,
"linespec", "-a;-l;-t;-r", "legend", legend.c_str(),
"grid", "on", "legcorn", "urp", "title", "Filtre gaussien MSK",
"subtitlex", imgname.c_str(), "xlabel", "f [Hz]",
"ylabel", "$[dB_{W/Hz}]$", /*"aymin", (spsdmean-20.0),*/
"linespeca", "-a", ∅);
if (ichk<0){
std::cerr << "[<" << § << "." << ƒ << ">] " <<
"graf_dis() error!" << std::endl;
return ierr;
} ierr--;
//---------------------------------------------------------------------
//[>LIBÈRE MÉMOIRE]
//---------------------------------------------------------------------
delete[] sr; sr=∅; delete[] sj; sj=∅;
delete[] freq; freq=∅; delete[] spsd; spsd=∅;
delete[] b; b=∅; delete[] fs; fs=∅;
delete[] z; z=∅; delete[] f1spsd; f1spsd=∅;
delete[] f2spsd; f2spsd=∅; delete[] f3spsd;
imgname.clear(); imgpath.clear(); legend.clear();
//---------------------------------------------------------------------
//[<LIBÈRE MÉMOIRE]
//---------------------------------------------------------------------
scltracefe(§, ƒ, ∅);
return 0;
}
/* ƒ décorée par
le 29-11-2026 13:43:48 */
Sortie
[>..\xpl\src\sclfiltr.xpl.cpp.gaussmskz_xpl]
scl-26.11 (cwin64, clang-22.1.8) : 29-11-2026 13:43:48
srvar: 0.999451
spsdmean: -0.002383 [dB(W/Hz)]
srvar : -0.002383 [dB]
Gaussian MSK filter (tap 3)
b: { 0.617442, 0.742379, 0.617442 }
Gaussian MSK filter (tap 5)
b: { 0.348831, 0.617442, 0.742379, 0.617442, 0.348831 }
Gaussian MSK filter (tap 9)
b: { 0.029583, 0.128469, 0.348831, 0.617442, 0.742379, 0.617442, 0.348831, 0.128469, 0.029583 }
<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
<< END OF DISLIN / VERSION 11.3.2 <<
<< Date : 29.11.2026 Time : 13:44:10 Pageformat: DA4L <<
<< Vectors : 5231 Warnings: 0 Fileformat: SVG <<
<< Metafile: ./srt/gaussmskz_xpl.svg <<
<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
[<..\xpl\src\sclfiltr.xpl.cpp.gaussmskz_xpl]
[..] La fonction [scl] gausspbfscl 
Code
int gausspbf_xpl(){
scltracefa(§, ƒ, ∅);
scltracefc("scl-%s (%s, %s) : %s\n\n", sclver(), sclsec(), sclver_cc(), temps_char(0));
/* Temps symbole : */ double ts = 1;
/* Facteur fc*Ts : */ double bt = 1;
/* Freq. de coupure : */ double fc = bt/ts;
int fn = 1001;
double *f = newtablin(fn, -5*fc, 5*fc);
bt=10; fc=bt/ts; double *H100=new double[fn];
gausspbf(fn, f, fc, H100);
scl::string_c legend = "BT=" + num_str<double>(bt);
bt=1; fc=bt/ts; double *H010=new double[fn];
gausspbf(fn, f, fc, H010);
legend += ";BT=" + num_str<double>(bt);
bt=0.5; fc=bt/ts; double *H005=new double[fn];
gausspbf(fn, f, fc, H005);
legend += ";BT=" + num_str<double>(bt);
bt=0.3; fc=bt/ts; double *H003=new double[fn];
gausspbf(fn, f, fc, H003);
legend += ";BT=" + num_str<double>(bt);
bt=0.2; fc=bt/ts; double *H002=new double[fn];
gausspbf(fn, f, fc, H002);
legend += ";BT=" + num_str<double>(bt);
bt=0.1; fc=bt/ts; double *H001=new double[fn];
gausspbf(fn, f, fc, H001);
legend += ";BT=" + num_str<double>(bt);
scl::string_c imgname=scl::string_c(ƒ)+".svg",
imgpath="./srt/"+imgname;
graf_dis(imgpath.c_str(), fn, f, H100, "curve", fn, f, H010,
"curve", fn, f, H005, "curve", fn, f, H003,
"curve", fn, f, H002, "curve", fn, f, H001,
"linespec", "-b;-l;-g;-y;-r;-n", "legend", legend.c_str(),
"grid", "on", "subtitle", imgname.c_str(),
"title", "Gaussian filter frequency response",
"xlabel", "Frequency", "linespeca", "-a", ∅);
//---------------------------------------------------------------------
//[>LIBÈRE MÉMOIRE]
//---------------------------------------------------------------------
delete[] f; f=∅; delete[] H100; H100=∅;
delete[] H005; H005=∅; delete[] H003; H003=∅;
delete[] H002; H002=∅; delete[] H010; H010=∅;
delete[] H001;
imgname.clear(); imgpath.clear(); legend.clear();
//---------------------------------------------------------------------
//[<LIBÈRE MÉMOIRE]
//---------------------------------------------------------------------
scltracefe(§, ƒ, ∅);
return 0;
}
/* ƒ décorée par
le 29-11-2026 13:44:11 */
Sortie
[>..\xpl\src\sclfiltr.xpl.cpp.gausspbf_xpl]
scl-26.11 (cwin64, clang-22.1.8) : 29-11-2026 13:44:11
<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
<< END OF DISLIN / VERSION 11.3.2 <<
<< Date : 29.11.2026 Time : 13:44:11 Pageformat: DA4L <<
<< Vectors : 6619 Warnings: 0 Fileformat: SVG <<
<< Metafile: ./srt/gausspbf_xpl.svg <<
<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
[<..\xpl\src\sclfiltr.xpl.cpp.gausspbf_xpl]
[..] La fonction [scl] gausspbtscl 
Code
int gausspbt_xpl(){
scltracefa(§, ƒ, ∅);
scltracefc("scl-%s (%s, %s) : %s\n\n", sclver(), sclsec(), sclver_cc(), temps_char(0));
/* Temps symbole : */ double ts = 1;
/* Facteur fc*Ts : */ double bt = 1;
/* Fréq. de coupure : */ double fc = bt/ts;
double ta=-5/fc, te=5/fc; int tn=1001;
double *t = newtablin(tn, ta, te);
double *h010=new double[tn]; gausspbt(tn, t, fc, h010);
scl::string_c legend = "BT=" + num_str<double>(bt);
bt=0.5; fc=bt/ts; double *h005=new double[tn];
gausspbt(tn, t, fc, h005);
legend += ";BT=" + num_str<double>(bt);
bt=0.3; fc=bt/ts; double *h003=new double[tn];
gausspbt(tn, t, fc, h003);
legend += ";BT=" + num_str<double>(bt);
bt=0.2; fc=bt/ts; double *h002=new double[tn];
gausspbt(tn, t, fc, h002);
legend += ";BT=" + num_str<double>(bt);
bt=0.1; fc=bt/ts; double *h001=new double[tn];
gausspbt(tn, t, fc, h001);
legend += ";BT=" + num_str<double>(bt);
scl::string_c imgname=scl::string_c(ƒ)+".svg",
imgpath="./srt/"+imgname;
graf_dis(imgpath.c_str(), tn, t, h010,
"curve", tn, t, h005, "curve", tn, t, h003,
"curve", tn, t, h002, "curve", tn, t, h001,
"linespec", "-l;-g;-y;-r;-k", "legend", legend.c_str(),
"grid", "on", "subtitle", imgname.c_str(),
"title", "Gaussian filter impulse response",
"xlabel", "Time", "linespeca", "-a", ∅);
//---------------------------------------------------------------------
//[>LIBÈRE MÉMOIRE]
//---------------------------------------------------------------------
delete[] t; t=∅; delete[] h010; h010=∅;
delete[] h005; h005=∅; delete[] h003; h003=∅;
delete[] h002; h002=∅; delete[] h001; h001=∅;
imgname.clear(); imgpath.clear(); legend.clear();
//---------------------------------------------------------------------
//[<LIBÈRE MÉMOIRE]
//---------------------------------------------------------------------
scltracefe(§, ƒ, ∅);
return 0;
}
/* ƒ décorée par
le 29-11-2026 13:44:12 */
Sortie
[>..\xpl\src\sclfiltr.xpl.cpp.gausspbt_xpl]
scl-26.11 (cwin64, clang-22.1.8) : 29-11-2026 13:44:12
<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
<< END OF DISLIN / VERSION 11.3.2 <<
<< Date : 29.11.2026 Time : 13:44:12 Pageformat: DA4L <<
<< Vectors : 6032 Warnings: 0 Fileformat: SVG <<
<< Metafile: ./srt/gausspbt_xpl.svg <<
<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
[<..\xpl\src\sclfiltr.xpl.cpp.gausspbt_xpl]
[..] La fonction [scl] gausspbzscl 
Code
int gausspbz_xpl(){
scltracefa(§, ƒ, ∅);
scltracefc("scl-%s (%s, %s) : %s\n\n", sclver(), sclsec(), sclver_cc(), temps_char(0));
int ichk, ierr=-1;
int vn = (int)107, vi;
double dvn = (double)vn;
// Dyadic correction
vn=(int)pow(2, round(ln(dvn)/ln(2))); dvn=(double)vn;
double dtechn=pow(2, 10);
int techn=(int)dtechn, techi;
/* Fréquence d'échantillonnage : */ double fe_hz = 1;
//---------------------------------------------------------------------
//[>RANDN]
//---------------------------------------------------------------------
int seed=0; double σ=1;
double *sr=new double[vn], *sj=new double[vn];
randn(vn, seed, σ, sr, sj); //🎲
double csr, srmoy=0, srvar=0;
for (vi=0;vi<vn;vi++){
csr=sr[vi]; srmoy+=csr;
sj[vi] = 0; // real signal!
}
// Noise mean
srmoy/=dvn;
// Noise variance estimation
for (vi=0;vi<vn;vi++){ csr=sr[vi]-srmoy; srvar+=csr*csr; } srvar/=dvn;
scltracefc("srvar: %lf\n", srvar);
double *freq=new double[techn], *spsd=new double[techn];
ichk = periodogramme(vn, sr, sj, techn, fe_hz, freq, spsd);
double spsdmean = 0;
for(techi=0;techi<techn;techi++){
spsdmean += pow(10, spsd[techi]/10);
} spsdmean /= dtechn;
scltracefc("spsdmean: %lf [dB(W/Hz)]\n", 10*log10(spsdmean));
scltracefc("srvar : %lf [dB]\n", 10*log10(srvar));
double spsdc = 10*log10(spsdmean) - 3;
//---------------------------------------------------------------------
//[<RANDN]
//---------------------------------------------------------------------
// Suréchantillonnage fe/fs
int fen=3; double dfen=(double)fen;
// Fréquence symbole
double fs_hz = fe_hz/dfen;
// fc*Ts
double bt = 0.3; // cf GSM
// Fréquence de coupure
double fc_hz = bt*fs_hz;
double *fs=new double[vn], *z=newtab<double>(vn, 0);
//---------------------------------------------------------------------
//[>RÉPONSE THÉORIQUE]
//---------------------------------------------------------------------
// Reponse theorique (seuil -18 dB)
double Ha = -18.0, cH;
int fn=1001, fi;
double fe=fc_hz*√(-Ha/(10*log10(2))), fa=-fe;
double *f = newtablin(fn, fa, fe);
double *H=new double[fn]; gausspbf(fn, f, fc_hz, H);
for(fi=0;fi<fn;fi++){ cH=H[fi]; H[fi]=10*log10(cH*cH); }
//---------------------------------------------------------------------
//[<RÉPONSE THÉORIQUE]
//---------------------------------------------------------------------
//---------------------------------------------------------------------
//[>FILTER & SPECTRUM]
//---------------------------------------------------------------------
/* bn max */ int be=9;
int bn=3; double *b=new double[be];
gausspbz(fen, bt, bn, b);
scltracefc("Gaussian filter (tap %d)\n", bn);
scltracefc(" b: ");
/*tracetab<double>(std::cout, bn, b); std::cout<<std::endl;*/
scltracetb(0, bn, b, "%lf"); scltracef("\n");
filtrz(vn, sr, bn, b, fs, z);
double *f1spsd=newtab<double>(techn, 0);
ichk = periodogramme(vn, fs, sj, techn, fe_hz, freq, f1spsd);
scl::string_c legend = "Tap " + num_str<int>(bn);
//---------------------------------------------------------------------
bn=5; gausspbz(fen, bt, bn, b);
scltracefc("Gaussian filter (tap %d)\n", bn);
scltracefc(" b: ");
/*tracetab<double>(std::cout, bn, b); std::cout<<std::endl;*/
scltracetb(0, bn, b, "%lf"); scltracef("\n");
/* Initialisation du registre : */ inittab(vn, 0, z);
filtrz(vn, sr, bn, b, fs, z);
double *f2spsd=newtab<double>(techn, 0);
ichk = periodogramme(vn, fs, sj, techn, fe_hz, freq, f2spsd);
legend += ";Tap " + num_str<int>(bn);
//---------------------------------------------------------------------
bn=9; gausspbz(fen, bt, bn, b);
scltracefc("Gaussian filter (tap %d)\n", bn);
scltracefc(" b: ");
/*tracetab<double>(std::cout, bn, b); std::cout<<std::endl;*/
scltracetb(0, bn, b, "%lf"); scltracef("\n");
/* Initialisation du registre : */ inittab(vn, 0, z);
filtrz(vn, sr, bn, b, fs, z);
double *f3spsd=newtab<double>(techn, 0);
ichk = periodogramme(vn, fs, sj, techn, fe_hz, freq, f3spsd);
legend += ";Tap " + num_str<int>(bn);
//---------------------------------------------------------------------
//[<FILTER & SPECTRUM]
//---------------------------------------------------------------------
legend = "Bruit blanc;"+ legend + ";Coupur.3dB;Theoriq.";
scl::string_c imgname=scl::string_c(ƒ)+".svg",
imgpath="./srt/"+imgname;
ichk = graf_dis(imgpath.c_str(), techn, freq, spsd,
"curve", techn, freq, f1spsd, "curve", techn, freq, f2spsd,
"curve", techn, freq, f3spsd,
"curve", 1, &fc_hz, &spsdc, "curve", fn, f, H,
"linespec", "-m;-l;-t;-r;rd;--k", "legend", legend.c_str(),
"grid", "on", "legcorn", "urp", "title", "Filtre gaussien",
"subtitle", imgname.c_str(), "xlabel", "f [Hz]",
"ylabel", "$[dB_{W/Hz}]$", "linespeca", "-a",
"aymax", 1, "aymin", (spsdmean-20), ∅);
if (ichk<0){
std::cerr << "[<" << § << "." << ƒ << ">] " <<
"graf_dis() error!" << std::endl;
return ierr;
} ierr--;
//---------------------------------------------------------------------
//[>LIBÈRE MÉMOIRE]
//---------------------------------------------------------------------
delete[] sr; sr=∅; delete[] sj; sj=∅;
delete[] freq; freq=∅; delete[] spsd; spsd=∅;
delete[] b; b=∅; delete[] fs; fs=∅;
delete[] z; z=∅; delete[] f1spsd; f1spsd=∅;
delete[] f2spsd; f2spsd=∅; delete[] f3spsd;
imgname.clear(); imgpath.clear(); legend.clear();
//---------------------------------------------------------------------
//[<LIBÈRE MÉMOIRE]
//---------------------------------------------------------------------
scltracefe(§, ƒ, ∅);
return 0;
}
/* ƒ décorée par
le 29-11-2026 13:44:12 */
Sortie
[>..\xpl\src\sclfiltr.xpl.cpp.gausspbz_xpl]
scl-26.11 (cwin64, clang-22.1.8) : 29-11-2026 13:44:12
srvar: 0.999451
spsdmean: -0.002383 [dB(W/Hz)]
srvar : -0.002383 [dB]
Gaussian filter (tap 3)
b: { 0.300349, 0.399303, 0.300349 }
Gaussian filter (tap 5)
b: { 0.101796, 0.239200, 0.318008, 0.239200, 0.101796 }
Gaussian filter (tap 9)
b: { 0.003163, 0.023217, 0.096425, 0.226580, 0.301230, 0.226580, 0.096425, 0.023217, 0.003163 }
<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
<< END OF DISLIN / VERSION 11.3.2 <<
<< Date : 29.11.2026 Time : 13:44:27 Pageformat: DA4L <<
<< Vectors : 4704 Warnings: 0 Fileformat: SVG <<
<< Metafile: ./srt/gausspbz_xpl.svg <<
<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
[<..\xpl\src\sclfiltr.xpl.cpp.gausspbz_xpl]
[..] La fonction [scl] portefscl 
Code
int portef_xpl(){
scltracefa(§, ƒ, ∅);
scltracefc("scl-%s (%s, %s) : %s\n\n", sclver(), sclsec(), sclver_cc(), temps_char(0));
// Amplitude de l'impulsion
double A = 1;
// Amortissement
double alpha[9]={ 0, 0.1, 0.2, 0.3, 0.4, 0.5, 0.6 };
int an=7, ai;
double ca;
// Periode (5 ns de rampe=T*alpha/2)
double T = 2*5E-9/0.15;
double T1ya;
int fn = 10001, fi;
double fa=-100/T, fe=-fa, f0=/*fe*3.0/4.0*/0;
double *f = newtablin(fn, fa, fe), cr, cj=0;
double **tpr=newmat<double>(an, fn), **dsp=newmat<double>(an, fn);
double dmax=-∞rd;
for(ai=0;ai<an;ai++){
ca=alpha[ai]; portef(fn, f, T, ca, tpr[ai]);
T1ya=T*(1+ca);
for(fi=0;fi<fn;fi++){
cr=tpr[ai][fi];
dsp[ai][fi]=10*log10((cr*cr+cj*cj)/T1ya);
if(dmax<dsp[ai][fi]){ dmax=dsp[ai][fi]; }
}
}
double dmax0=A*T/2; dmax0=dmax0*dmax0; dmax0=10*log10(dmax0/T);
scltracefc("dmax0: %lf, dmax: %lf\n", dmax0, dmax);
scl::string_c imgname=scl::string_c(ƒ)+".pdf",
imgpath="./srt/"+imgname;
int *mn = newtab<int>(an, fn);
double **mf=new double*[an]; for(ai=0;ai<an;ai++){ mf[ai]=f; }
for(fi=0;fi<fn;fi++){ f[fi]/=106; }
std::string legend="α="+num_str<double>(alpha[0]);
for(ai=1;ai<an;ai++){
legend += ";α="+num_str<double>(alpha[ai]);
}
std::string subtitle = "A: " + num_str<double>(A) +
" - T: " + num_str<double>(T*109) + " ns" +
" - $f_{0}$: " + num_str<double>(f0/106) + " MHz";
graf_dis(imgpath.c_str(), 0, ∅, ∅, "curvex", an, mn, mf, dsp,
"grid", "on", "xlabel", "[MHz]", "aymin", (dmax-60),
"legend", legend.c_str(), "ylabel", imgname.c_str(),
"title", "Power spectrum density of trapezium pulse",
"subtitle", subtitle.c_str(), "legcorn", "lrp",
"linespeca", "-a", ∅);
imgname.clear(); imgname=scl::string_c(ƒ)+"-zoom.pdf";
imgpath.clear(); imgpath="./srt/"+imgname;
graf_dis(imgpath.c_str(), 0, ∅, ∅, "curvex", an, mn, mf, dsp,
"grid", "on", "xlabel", "[MHz]", "aymin", (dmax-60),
"axmin", (f0-10/T)/106, "axmax", (f0+10/T)/106,
"legend", legend.c_str(), "ylabel", imgname.c_str(),
"title", "Power spectrum density of trapezium pulse",
"subtitle", subtitle.c_str(), "legcorn", "lrp",
"linespeca", "-a", ∅);
scltracefe(§, ƒ, ∅);
return 0;
}
/* ƒ décorée par
le 29-11-2026 13:44:28 */
Sortie
[>..\xpl\src\sclfiltr.xpl.cpp.portef_xpl]
scl-26.11 (cwin64, clang-22.1.8) : 29-11-2026 13:44:28
dmax0: -77.781513, dmax: -71.760913
<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
<< END OF DISLIN / VERSION 11.3.2 <<
<< Date : 29.11.2026 Time : 13:44:28 Pageformat: DA4L <<
<< Vectors : 17046 Warnings: 0 Fileformat: PDF <<
<< Metafile: ./srt/portef_xpl.pdf <<
<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
<< END OF DISLIN / VERSION 11.3.2 <<
<< Date : 29.11.2026 Time : 13:44:28 Pageformat: DA4L <<
<< Vectors : 7146 Warnings: 0 Fileformat: PDF <<
<< Metafile: ./srt/portef_xpl-zoom.pdf <<
<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
[<..\xpl\src\sclfiltr.xpl.cpp.portef_xpl]
[..] La fonction [scl] portetscl 
Code
int portet_xpl(){
scltracefa(§, ƒ, ∅);
scltracefc("scl-%s (%s, %s) : %s\n\n", sclver(), sclsec(), sclver_cc(), temps_char(0));
double tc=1;
int tn = 501;
double *t = newtablin(tn, -2*tc, 2*tc);
double α=1; double *h10=new double[tn];
portet(tn, t, tc, α, h10);
scl::string_c legend = "α=" + num_str<double>(α) +" (tria)";
α=0.5; double *h05=new double[tn];
portet(tn, t, tc, α, h05);
legend += ";α=" + num_str<double>(α);
α=0.2; double *h02=new double[tn];
portet(tn, t, tc, α, h02);
legend += ";α=" + num_str<double>(α);
α=0.1; double *h01=new double[tn];
portet(tn, t, tc, α, h01);
legend += ";α=" + num_str<double>(α);
α=0; double *h00=new double[tn];
portet(tn, t, tc, α, h00);
legend += ";α=" + num_str<double>(α) + " (rect)";
scl::string_c imgname=scl::string_c(ƒ)+".pdf",
imgpath="./srt/"+imgname;
graf_dis(imgpath.c_str(), tn, t, h10, "curve", tn, t, h05,
"curve", tn, t, h02, "curve", tn, t, h01, "curve", tn, t, h00,
"linespec", "-b;-g;-y;-r;--k", "legend", legend.c_str(),
"grid", "on", "subtitle", imgname.c_str(),
"title", "Window filter time response", "linespeca", "-a",
"xlabel", "Time", "aymax", 1.1, ∅);
//---------------------------------------------------------------------
//[>LIBÈRE MÉMOIRE]
//---------------------------------------------------------------------
delete[] t; t=∅; delete[] h00; h00=∅;
delete[] h10; h10=∅; delete[] h05; h05=∅;
delete[] h02; h02=∅; delete[] h01; h01=∅;
imgname.clear(); imgpath.clear(); legend.clear();
//---------------------------------------------------------------------
//[<LIBÈRE MÉMOIRE]
//---------------------------------------------------------------------
scltracefe(§, ƒ, ∅);
return 0;
}
/* ƒ décorée par
le 29-11-2026 13:44:29 */
Sortie
[>..\xpl\src\sclfiltr.xpl.cpp.portet_xpl]
scl-26.11 (cwin64, clang-22.1.8) : 29-11-2026 13:44:29
<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
<< END OF DISLIN / VERSION 11.3.2 <<
<< Date : 29.11.2026 Time : 13:44:29 Pageformat: DA4L <<
<< Vectors : 1899 Warnings: 0 Fileformat: PDF <<
<< Metafile: ./srt/portet_xpl.pdf <<
<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
[<..\xpl\src\sclfiltr.xpl.cpp.portet_xpl]
[..] La fonction [scl] portezscl 
Code
int portez_xpl(){
scltracefa(§, ƒ, ∅);
scltracefc("scl-%s (%s, %s) : %s\n\n", sclver(), sclsec(), sclver_cc(), temps_char(0));
portez_xpl(6);
portez_xpl(7);
scltracefe(§, ƒ, ∅);
return 0;
}
/* ƒ décorée par
le 29-11-2026 13:44:30 */
int portez_xpl(int fen){
scltracefa(§, ƒ, ∅);
int ichk, ierr=-1;
int vn = (int)107, vi;
double dvn = (double)vn;
// Dyadic correction
vn=(int)pow(2, round(ln(dvn)/ln(2))); dvn=(double)vn;
double dtechn=pow(2, 10);
int techn=(int)dtechn, techi;
double fe_hz = 1;
//---------------------------------------------------------------------
//[>RANDN]
//---------------------------------------------------------------------
int seed=0; double σ=1;
double *sr=new double[vn], *sj=new double[vn];
randn(vn, seed, σ, sr, sj); //🎲
double csr, srmoy=0, srvar=0;
for (vi=0;vi<vn;vi++){ srmoy+=sr[vi]; sj[vi]=0; /*signal réel!*/ }
// Noise mean
srmoy/=dvn;
// Noise variance estimation
for (vi=0;vi<vn;vi++){ csr=sr[vi]-srmoy; srvar+=csr*csr; } srvar/=dvn;
scltracefc("srvar: %lf\n", srvar);
double *freq=new double[techn], *spsd=new double[techn];
ichk = periodogramme(vn, sr, sj, techn, fe_hz, freq, spsd);
double spsdmean = 0;
for(techi=0;techi<techn;techi++){
spsdmean += pow(10, spsd[techi]/10);
} spsdmean /= dtechn;
scltracefc("spsdmean: %lf [dB(W/Hz)]\n", 10*log10(spsdmean));
scltracefc("srvar : %lf [dB]\n", 10*log10(srvar));
scl::string_c legend = "No filt.";
//---------------------------------------------------------------------
//[<RANDN]
//---------------------------------------------------------------------
// Cut-off frequencies
/*int fen=7;*/
double dfen=(double)fen, tc=dfen/fe_hz;
// Frequence de coupure echantillonnee
double fc_hz=1/(tc), freqc=fc_hz/fe_hz; // ici fe_hz/(2.0*3.0)
int be = 2*6*10+1;
double *br=new double[be];
double *fsr=new double[vn]/*, *fsj=new double[vn]*/;
double *zr=newtab<double>(be-1, 0)/*, *zj=newtab<double>(be-1, 0.0)*/;
//---------------------------------------------------------------------
//[>RÉPONSE THÉORIQUE]
//---------------------------------------------------------------------
int fn=1001, fi; double *f=newtablin(fn, -fe_hz/2, fe_hz/2);
double *H = new double[fn], cH;
portef(fn, f, tc, 0, H);
// On corrige la reponse de la variance du bruit
for(fi=0;fi<fn;fi++){
cH = H[fi];
f[fi] = f[fi]/fe_hz;
H[fi] = 10*log10(srvar*cH*cH);
}
// Coupure à 3 [dB]
double spsdc_3dB = 10*log10(tc*tc*srvar/2);
double a0 = 1;
//---------------------------------------------------------------------
//[>FILTER & SPECTRUM]
//---------------------------------------------------------------------
int tsn=1, bn=2*fen*tsn+1, on;
double α = 1;
portez(dfen, tsn, α, bn, br, &on);
scltracefc("Window filter (tap %d, order %d, alpha=%lf)\n",
bn, on, α);
scltracefc(" b: ");
/*tracetab<double>(std::cout, bn, br); std::cout<<std::endl;*/
scltracetb(0, bn, br, "%lf"); scltracef("\n");
filtrz(vn, sr, 1, &a0, bn, br, fsr, zr);
double *f1spsd=newtab<double>(techn, 0);
ichk = periodogramme(vn, fsr, sj, techn, fe_hz, freq, f1spsd);
legend += ";α=" + num_str<double>(α);
//---------------------------------------------------------------------
α=0.8;
portez(dfen, tsn, α, bn, br, &on);
scltracefc("Window filter (tap %d, order %d, alpha=%lf)\n",
bn, on, α);
scltracefc(" b: ");
/*tracetab<double>(std::cout, bn, br); std::cout<<std::endl;*/
scltracetb(0, bn, br, "%lf"); scltracef("\n");
/* Initialisation du registre : */ inittab(be-1, 0, zr);
filtrz(vn, sr, 1, &a0, bn, br, fsr, zr);
double *f2spsd=newtab<double>(techn, 0);
ichk = periodogramme(vn, fsr, sj, techn, fe_hz, freq, f2spsd);
legend += ";α=" + num_str<double>(α);
//---------------------------------------------------------------------
α=0.6;
portez(dfen, tsn, α, bn, br, &on);
scltracefc("Window filter (tap %d, order %d, alpha=%lf)\n",
bn, on, α);
scltracefc(" b: ");
/*tracetab<double>(std::cout, bn, br); std::cout<<std::endl;*/
scltracetb(0, bn, br, "%lf"); scltracef("\n");
/* Initialisation du registre : */ inittab(be-1, 0, zr);
filtrz(vn, sr, 1, &a0, bn, br, fsr, zr);
double *f3spsd=newtab<double>(techn, 0);
ichk = periodogramme(vn, fsr, sj, techn, fe_hz, freq, f3spsd);
legend += ";α=" + num_str<double>(α);
//---------------------------------------------------------------------
α=0.4;
portez(dfen, tsn, α, bn, br, &on);
scltracefc("Window filter (tap %d, order %d, alpha=%lf)\n",
bn, on, α);
scltracefc(" b: ");
/*tracetab<double>(std::cout, bn, br); std::cout<<std::endl;*/
scltracetb(0, bn, br, "%lf"); scltracef("\n");
/* Initialisation du registre : */ inittab(be-1, 0, zr);
filtrz(vn, sr, 1, &a0, bn, br, fsr, zr);
double *f4spsd=newtab<double>(techn, 0);
ichk = periodogramme(vn, fsr, sj, techn, fe_hz, freq, f4spsd);
legend += ";α=" + num_str<double>(α);
//---------------------------------------------------------------------
α=0.2;
portez(dfen, tsn, α, bn, br, &on);
scltracefc("Window filter (tap %d, order %d, alpha=%lf)\n",
bn, on, α);
scltracefc(" b: ");
/*tracetab<double>(std::cout, bn, br); std::cout<<std::endl;*/
scltracetb(0, bn, br, "%lf"); scltracef("\n");
/* Initialisation du registre : */ inittab(be-1, 0, zr);
filtrz(vn, sr, 1, &a0, bn, br, fsr, zr);
double *f5spsd=newtab<double>(techn, 0);
ichk = periodogramme(vn, fsr, sj, techn, fe_hz, freq, f5spsd);
legend += ";α=" + num_str<double>(α);
//---------------------------------------------------------------------
α=0;
portez(dfen, tsn, α, bn, br, &on);
scltracefc("Window filter (tap %d, order %d, alpha=%lf)\n",
bn, on, α);
scltracefc(" b: ");
/*tracetab<double>(std::cout, bn, br); std::cout<<std::endl;*/
scltracetb(0, bn, br, "%lf"); scltracef("\n");
/* Initialisation du registre : */ inittab(be-1, 0, zr);
filtrz(vn, sr, 1, &a0, bn, br, fsr, zr);
double *f10spsd=newtab<double>(techn, 0);
ichk = periodogramme(vn, fsr, sj, techn, fe_hz, freq, f10spsd);
legend += ";α=" + num_str<double>(α);
//---------------------------------------------------------------------
//[<FILTER & SPECTRUM]
//---------------------------------------------------------------------
scl::string_c imgname=std::string(ƒ)+"-"+
num_str<int>(fen)+".pdf", imgpath="./srt/"+imgname;
legend += ";Cut-off;Theory";
ichk = graf_dis(imgpath.c_str(), techn, freq, spsd,
"curve", techn, freq, f1spsd,
"curve", techn, freq, f2spsd,
"curve", techn, freq, f3spsd,
"curve", techn, freq, f4spsd,
"curve", techn, freq, f5spsd,
"curve", techn, freq, f10spsd,
"curve", 1, &freqc, &spsdc_3dB,
"curve", fn, f, H, "linespeca", "-a",
"linespec", "-u;-b;-l;-t;-g;-e;--r;kd;-k",
"legend", legend.c_str(), "aymin", -50.0,
"grid", "on", "legcorn", "urp",
"title", "Window filtering",
"subtitlex", imgname.c_str(),
"xlabel", "$f/f_e$", "titlex", "PSD $[dB_{W/Hz}]$", ∅);
if (ichk<0){
std::cerr << "[<" << § << "." << ƒ << ">] "
"graf_dis() error!" << std::endl;
scltracefe(§, ƒ, ∅);
return ierr;
} ierr--;
//---------------------------------------------------------------------
//[>LIBÈRE MÉMOIRE]
//---------------------------------------------------------------------
delete[] sr; sr=∅; delete[] sj; sj=∅;
delete[] freq; freq=∅; delete[] spsd; spsd=∅;
delete[] br; br=∅; delete[] fsr; fsr=∅;
delete[] zr; zr=∅; delete[] f1spsd; f1spsd=∅;
delete[] f2spsd; f2spsd=∅; delete[] f3spsd; f3spsd=∅;
delete[] f4spsd; f4spsd=∅; delete[] f5spsd; f5spsd=∅;
delete[] f10spsd; f10spsd=∅;
imgname.clear(); imgpath.clear(); legend.clear();
//---------------------------------------------------------------------
//[<LIBÈRE MÉMOIRE]
//---------------------------------------------------------------------
scltracefe(§, ƒ, ∅);
return 0;
}
/* ƒ décorée par
le 29-11-2026 13:44:30 */
Sortie
[>..\xpl\src\sclfiltr.xpl.cpp.portez_xpl]
scl-26.11 (cwin64, clang-22.1.8) : 29-11-2026 13:44:30
[>..\xpl\src\sclfiltr.xpl.cpp.portez_xpl]
srvar: 0.999451
spsdmean: -0.002383 [dB(W/Hz)]
srvar : -0.002383 [dB]
Window filter (tap 13, order 10, alpha=1.000000)
b: { 0.000000, 0.166667, 0.333333, 0.500000, 0.666667, 0.833333, 1.000000, 0.833333, 0.666667, 0.500000, 0.333333, 0.166667, -0.000000 }
Window filter (tap 13, order 10, alpha=0.800000)
b: { 0.000000, 0.083333, 0.291667, 0.500000, 0.708333, 0.916667, 1.000000, 0.916667, 0.708333, 0.500000, 0.291667, 0.083333, 0.000000 }
Window filter (tap 13, order 8, alpha=0.600000)
b: { 0.000000, 0.000000, 0.222222, 0.500000, 0.777778, 1.000000, 1.000000, 1.000000, 0.777778, 0.500000, 0.222222, 0.000000, 0.000000 }
Window filter (tap 13, order 8, alpha=0.400000)
b: { 0.000000, 0.000000, 0.083333, 0.500000, 0.916667, 1.000000, 1.000000, 1.000000, 0.916667, 0.500000, 0.083333, 0.000000, 0.000000 }
Window filter (tap 13, order 6, alpha=0.200000)
b: { 0.000000, 0.000000, 0.000000, 0.500000, 1.000000, 1.000000, 1.000000, 1.000000, 1.000000, 0.500000, 0.000000, 0.000000, 0.000000 }
Window filter (tap 13, order 6, alpha=0.000000)
b: { 0.000000, 0.000000, 0.000000, 0.500000, 1.000000, 1.000000, 1.000000, 1.000000, 1.000000, 0.500000, 0.000000, 0.000000, 0.000000 }
<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
<< END OF DISLIN / VERSION 11.3.2 <<
<< Date : 29.11.2026 Time : 13:45:02 Pageformat: DA4L <<
<< Vectors : 9166 Warnings: 0 Fileformat: PDF <<
<< Metafile: ./srt/portez_xpl-6.pdf <<
<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
[<..\xpl\src\sclfiltr.xpl.cpp.portez_xpl]
[>..\xpl\src\sclfiltr.xpl.cpp.portez_xpl]
srvar: 0.999451
spsdmean: -0.002383 [dB(W/Hz)]
srvar : -0.002383 [dB]
Window filter (tap 15, order 12, alpha=1.000000)
b: { 0.000000, 0.142857, 0.285714, 0.428571, 0.571429, 0.714286, 0.857143, 1.000000, 0.857143, 0.714286, 0.571429, 0.428571, 0.285714, 0.142857, -0.000000 }
Window filter (tap 15, order 12, alpha=0.800000)
b: { 0.000000, 0.053571, 0.232143, 0.410714, 0.589286, 0.767857, 0.946429, 1.000000, 0.946429, 0.767857, 0.589286, 0.410714, 0.232143, 0.053571, 0.000000 }
Window filter (tap 15, order 10, alpha=0.600000)
b: { 0.000000, 0.000000, 0.142857, 0.380952, 0.619048, 0.857143, 1.000000, 1.000000, 1.000000, 0.857143, 0.619048, 0.380952, 0.142857, 0.000000, 0.000000 }
Window filter (tap 15, order 8, alpha=0.400000)
b: { 0.000000, 0.000000, 0.000000, 0.321429, 0.678571, 1.000000, 1.000000, 1.000000, 1.000000, 1.000000, 0.678571, 0.321429, 0.000000, 0.000000, 0.000000 }
Window filter (tap 15, order 8, alpha=0.200000)
b: { 0.000000, 0.000000, 0.000000, 0.142857, 0.857143, 1.000000, 1.000000, 1.000000, 1.000000, 1.000000, 0.857143, 0.142857, 0.000000, 0.000000, 0.000000 }
Window filter (tap 15, order 6, alpha=0.000000)
b: { 0.000000, 0.000000, 0.000000, 0.000000, 1.000000, 1.000000, 1.000000, 1.000000, 1.000000, 1.000000, 1.000000, 0.000000, 0.000000, 0.000000, 0.000000 }
<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
<< END OF DISLIN / VERSION 11.3.2 <<
<< Date : 29.11.2026 Time : 13:45:29 Pageformat: DA4L <<
<< Vectors : 9255 Warnings: 0 Fileformat: PDF <<
<< Metafile: ./srt/portez_xpl-7.pdf <<
<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
[<..\xpl\src\sclfiltr.xpl.cpp.portez_xpl]
[<..\xpl\src\sclfiltr.xpl.cpp.portez_xpl]
[..] La fonction [scl] racosinrusfscl 
Code
int racosinrusf_xpl(){
scltracefa(§, ƒ, ∅);
scltracefc("scl-%s (%s, %s) : %s\n\n", sclver(), sclsec(), sclver_cc(), temps_char(0));
double tc=1, fc=1/(2*tc);
int fn = 1001;
double *f = newtablin(fn, -2*fc, 2*fc);
double α=1; double *H10=new double[fn];
racosinrusf(f, fn, tc, α, H10);
scl::string_c legend = "α=" + num_str<double>(α);
α=0.5; double *H05=new double[fn];
racosinrusf(f, fn, tc, α, H05);
legend += ";α=" + num_str<double>(α);
α=0.2; double *H02=new double[fn];
racosinrusf(f, fn, tc, α, H02);
legend += ";α=" + num_str<double>(α);
α=0.1; double *H01=new double[fn];
racosinrusf(f, fn, tc, α, H01);
legend += ";α=" + num_str<double>(α);
α=0; double *H00=new double[fn];
racosinrusf(f, fn, tc, α, H00);
legend += ";α=" + num_str<double>(α) + " (rect)";
scl::string_c imgname=scl::string_c(ƒ)+".svg",
imgpath="./srt/"+imgname;
graf_dis(imgpath.c_str(), fn, f, H10, "curve", fn, f, H05,
"curve", fn, f, H02, "curve", fn, f, H01, "curve", fn, f, H00,
"linespec", "-b;-g;-y;-r;--k", "legend", legend.c_str(),
"grid", "on", "subtitle", imgname.c_str(),
"title", "Square root raised cosine filter frequency response",
"xlabel", "Frequency", "aymax", 1.1,
"linespeca", "-a", ∅);
//---------------------------------------------------------------------
//[>LIBÈRE MÉMOIRE]
//---------------------------------------------------------------------
delete[] f; f=∅; delete[] H00; H00=∅;
delete[] H10; H10=∅; delete[] H05; H05=∅;
delete[] H02; H02=∅; delete[] H01; H01=∅;
imgname.clear(); imgpath.clear(); legend.clear();
//---------------------------------------------------------------------
//[<LIBÈRE MÉMOIRE]
//---------------------------------------------------------------------
scltracefe(§, ƒ, ∅);
return 0;
}
/* ƒ décorée par
le 29-11-2026 13:45:30 */
Sortie
[>..\xpl\src\sclfiltr.xpl.cpp.racosinrusf_xpl]
scl-26.11 (cwin64, clang-22.1.8) : 29-11-2026 13:45:30
<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
<< END OF DISLIN / VERSION 11.3.2 <<
<< Date : 29.11.2026 Time : 13:45:30 Pageformat: DA4L <<
<< Vectors : 4290 Warnings: 0 Fileformat: SVG <<
<< Metafile: ./srt/racosinrusf_xpl.svg <<
<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
[<..\xpl\src\sclfiltr.xpl.cpp.racosinrusf_xpl]
[..] La fonction [scl] racosinrustscl 
Code
int racosinrust_xpl(){
scltracefa(§, ƒ, ∅);
scltracefc("scl-%s (%s, %s) : %s\n\n", sclver(), sclsec(), sclver_cc(), temps_char(0));
double tc=1, stc=√(tc), ta=-5*tc, te=5*tc; int tn=1001;
double *t = newtablin(tn, ta, te);
double *ct=new double[2*4], *ch=new double[2*4];
double α=1, uma=1-α, qa=4*α;
double *h10=new double[tn];
ct[0]=tc/(4*α); ct[1]=-ct[0];
ch[0]=α*(cos(π*uma/qa)+2*sin(π*uma/qa)/π)/stc;
ch[1]=ch[0];
racosinrust(t, tn, tc, α, h10);
scl::string_c legend = "α=" + num_str<double>(α) + ";";
α=0.5; uma=1-α; qa=4*α; double *h05=new double[tn];
ct[2]=tc/(4*α); ct[3]=-ct[2];
ch[2]=α*(cos(π*uma/qa)+2*sin(π*uma/qa)/π)/stc;
ch[3]=ch[2];
racosinrust(t, tn, tc, α, h05);
legend += ";α=" + num_str<double>(α) + ";";
α=0.2; uma=1-α; qa=4*α; double *h02=new double[tn];
ct[4]=tc/(4*α); ct[5]=-ct[4];
ch[4]=α*(cos(π*uma/qa)+2*sin(π*uma/qa)/π)/stc;
ch[5]=ch[4];
racosinrust(t, tn, tc, α, h02);
legend += ";α=" + num_str<double>(α) + ";";
α=0.1; uma=1-α; qa=4*α; double *h01=new double[tn];
ct[6]=tc/(4*α); ct[7]=-ct[6];
ch[6]=α*(cos(π*uma/qa)+2*sin(π*uma/qa)/π)/stc;
ch[7]=ch[6];
racosinrust(t, tn, tc, α, h01);
legend += ";α=" + num_str<double>(α) + ";";
α=0; double *scwt=new double[tn];
racosinrust(t, tn, tc, α, scwt);
legend += ";α=" + num_str<double>(α) +
" (sinc/$\\sqrt{T}$)";
scl::string_c imgname=scl::string_c(ƒ)+".svg",
imgpath="./srt/"+imgname;
graf_dis(imgpath.c_str(), tn, t, h10, "curve", 2, &ct[0], &ch[0],
"curve", tn, t, h05, "curve", 2, &ct[2], &ch[2],
"curve", tn, t, h02, "curve", 2, &ct[4], &ch[4],
"curve", tn, t, h01, "curve", 2, &ct[6], &ch[6],
"curve", tn, t, scwt, "linespeca", "-a",
"linespec", "-l;b*;-t;g*;-y;e*;-r;m*;--k",
"legend", legend.c_str(),
"grid", "on", "subtitle", imgname.c_str(),
"title", "Square root raised cosine filter impulse response",
"xlabel", "Cut-off period number", ∅);
//---------------------------------------------------------------------
//[>LIBÈRE MÉMOIRE]
//---------------------------------------------------------------------
delete[] t; t=∅; delete[] ct; ct=∅;
delete[] ch; ch=∅; delete[] scwt; scwt=∅;
delete[] h10; h10=∅; delete[] h05; h05=∅;
delete[] h02; h02=∅; delete[] h01; h01=∅;
imgname.clear(); imgpath.clear(); legend.clear();
//---------------------------------------------------------------------
//[<LIBÈRE MÉMOIRE]
//---------------------------------------------------------------------
scltracefe(§, ƒ, ∅);
return 0;
}
/* ƒ décorée par
le 29-11-2026 13:45:31 */
Sortie
[>..\xpl\src\sclfiltr.xpl.cpp.racosinrust_xpl]
scl-26.11 (cwin64, clang-22.1.8) : 29-11-2026 13:45:31
<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
<< END OF DISLIN / VERSION 11.3.2 <<
<< Date : 29.11.2026 Time : 13:45:31 Pageformat: DA4L <<
<< Vectors : 6196 Warnings: 0 Fileformat: SVG <<
<< Metafile: ./srt/racosinrust_xpl.svg <<
<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
[<..\xpl\src\sclfiltr.xpl.cpp.racosinrust_xpl]
[..] La fonction [scl] racosinruszscl 
Code
int racosinrusz_xpl(){
scltracefa(§, ƒ, ∅);
scltracefc("scl-%s (%s, %s) : %s\n\n", sclver(), sclsec(), sclver_cc(), temps_char(0));
int ichk, ierr=-1;
int vn = (int)107, vi;
double dvn = (double)vn;
// Dyadic correction
vn=(int)pow(2, round(ln(dvn)/ln(2))); dvn=(double)vn;
double dtechn=round(pow(2, 10));
int techn=(int)dtechn, techi;
double fe = 1;
//---------------------------------------------------------------------
//[>RANDN]
//---------------------------------------------------------------------
int seed=0; double σ=1;
double *sr=new double[vn], *sj=new double[vn];
randn(vn, seed, σ, sr, sj); //🎲
double csr, srmoy=0, srvar=0;
for (vi=0;vi<vn;vi++){
csr=sr[vi]; srmoy+=csr;
sj[vi] = 0; // real signal!
}
// Noise mean
srmoy/=dvn;
// Noise variance estimation
for (vi=0;vi<vn;vi++){ csr=sr[vi]-srmoy; srvar+=csr*csr; } srvar/=dvn;
scltracefc("srvar: %lf\n", srvar);
double *freq=new double[techn], *spsd=new double[techn];
ichk = periodogramme(vn, sr, sj, techn, fe, freq, spsd);
double spsdmean = 0;
for(techi=0;techi<techn;techi++){
spsdmean += pow(10, spsd[techi]/10);
} spsdmean /= dtechn;
scltracefc("spsdmean: %lf [dB(W/Hz)]\n", 10*log10(spsdmean));
scltracefc("srvar : %lf [dB]\n", 10*log10(srvar));
scl::string_c legend = "No filt.";
//---------------------------------------------------------------------
//[<RANDN]
//---------------------------------------------------------------------
// Cut-off frequencies
int ten=3;
double dten=(double)ten, tc=dten/fe, stc=√(tc);
double fc_hz=1/(2*tc), freqc=fc_hz/fe;
// Excess bandwidth
double α = 0.2;
double *b=new double[2401];
double *fs=new double[vn], *z=newtab<double>(vn, 0);
// Theoretical frequency response (-40 dB threshold)
double ff = (1-α)/(2*tc) +
α/(π*tc)*cos-1(2*pow(10,-40/10)-1);
double fd=-ff;
int fn=1001, fi; double *f = newtablin(fn, fd, ff);
double *H=new double[fn], cH;
racosinrusf(f, fn, tc, α, H);
for(fi=0;fi<fn;fi++){
cH = H[fi]; f[fi]=f[fi]/fe;
// Correction de la variance du bruit
H[fi] = 10*log10(srvar*cH*cH);
}
double spsdc = 10*log10(srvar*stc*stc/2);
double a0 = 1;
//---------------------------------------------------------------------
//[>FILTER & SPECTRUM]
//---------------------------------------------------------------------
int tsn=1, bn=2*ten*tsn+1;
racosinrusz(ten, tsn, α, bn, b);
scltracefc("Square root raised cosine filter (tap %d)\n", bn);
scltracefc(" b: ");
/*tracetab<double>(std::cout, bn, b); std::cout<<std::endl;*/
scltracetb(0, bn, b, "%lf"); scltracef("\n");
filtrz(vn, sr, 1, &a0, bn, b, fs, z);
double *f1spsd=newtab<double>(techn, 0);
ichk = periodogramme(vn, fs, sj, techn, fe, freq, f1spsd);
legend += ";Tap " + num_str<double>(bn);
//---------------------------------------------------------------------
tsn=2; bn=2*ten*tsn+1;
racosinrusz(ten, tsn, α, bn, b);
scltracefc("Square root raised cosine filter (tap %d)\n", bn);
scltracefc(" b: ");
/*tracetab<double>(std::cout, bn, b); std::cout<<std::endl;*/
scltracetb(0, bn, b, "%lf"); scltracef("\n");
/* Initialisation du registre : */ inittab(vn, 0, z);
filtrz(vn, sr, 1, &a0, bn, b, fs, z);
double *f2spsd=newtab<double>(techn, 0);
ichk = periodogramme(vn, fs, sj, techn, fe, freq, f2spsd);
legend += ";Tap " + num_str<double>(bn);
//---------------------------------------------------------------------
tsn=3; bn=2*ten*tsn+1;
racosinrusz(ten, tsn, α, bn, b);
scltracefc("Square root raised cosine filter (tap %d)\n", bn);
scltracefc(" b: ");
/*tracetab<double>(std::cout, bn, b); std::cout<<std::endl;*/
scltracetb(0, bn, b, "%lf"); scltracef("\n");
/* Initialisation du registre : */ inittab(vn, 0, z);
filtrz(vn, sr, 1, &a0, bn, b, fs, z);
double *f3spsd=newtab<double>(techn, 0);
ichk = periodogramme(vn, fs, sj, techn, fe, freq, f3spsd);
legend += ";Tap " + num_str<double>(bn);
//---------------------------------------------------------------------
tsn=4; bn=2*ten*tsn+1;
racosinrusz(ten, tsn, α, bn, b);
scltracefc("Square root raised cosine filter (tap %d)\n", bn);
scltracefc(" b: ");
/*tracetab<double>(std::cout, bn, b); std::cout<<std::endl;*/
scltracetb(0, bn, b, "%lf"); scltracef("\n");
/* Initialisation du registre : */ inittab(vn, 0, z);
filtrz(vn, sr, 1, &a0, bn, b, fs, z);
double *f4spsd=newtab<double>(techn, 0);
ichk = periodogramme(vn, fs, sj, techn, fe, freq, f4spsd);
legend += ";Tap " + num_str<double>(bn);
//---------------------------------------------------------------------
tsn=5; bn=2*ten*tsn+1;
racosinrusz(ten, tsn, α, bn, b);
scltracefc("Square root raised cosine filter (tap %d)\n", bn);
scltracefc(" b: ");
/*tracetab<double>(std::cout, bn, b); std::cout<<std::endl;*/
scltracetb(0, bn, b, "%lf"); scltracef("\n");
/* Initialisation du registre : */ inittab(vn, 0, z);
filtrz(vn, sr, 1, &a0, bn, b, fs, z);
double *f5spsd=newtab<double>(techn, 0);
ichk = periodogramme(vn, fs, sj, techn, fe, freq, f5spsd);
legend += ";Tap " + num_str<double>(bn);
//---------------------------------------------------------------------
tsn=10; bn=2*ten*tsn+1;
racosinrusz(ten, tsn, α, bn, b);
scltracefc("Square root raised cosine filter (tap %d)\n", bn);
scltracefc(" b: ");
/*tracetab<double>(std::cout, bn, b); std::cout<<std::endl;*/
scltracetb(0, bn, b, "%lf"); scltracef("\n");
/* Initialisation du registre : */ inittab(vn, 0, z);
filtrz(vn, sr, 1, &a0, bn, b, fs, z);
double *f10spsd=newtab<double>(techn, 0);
ichk = periodogramme(vn, fs, sj, techn, fe, freq, f10spsd);
legend += ";Tap " + num_str<double>(bn);
//---------------------------------------------------------------------
//[<FILTER & SPECTRUM]
//---------------------------------------------------------------------
scl::string_c imgname=scl::string_c(ƒ)+".svg",
imgpath="./srt/"+imgname;
legend += ";Cut-off 3;Theory";
ichk = graf_dis(imgpath.c_str(), techn, freq, spsd,
"curve", techn, freq, f1spsd,
"curve", techn, freq, f2spsd,
"curve", techn, freq, f3spsd,
"curve", techn, freq, f4spsd,
"curve", techn, freq, f5spsd,
"curve", techn, freq, f10spsd,
"curve", 1, &freqc, &spsdc,
"curve", fn, f, H,
"linespec", "-a;-b;-l;-t;-g;-e;-r;kd;-k",
"legend", legend.c_str(),
"grid", "on", "legcorn", "urp",
"title", "Square root raised cosine filtering",
"subtitlex", imgname.c_str(), "linespeca", "-a",
"xlabel", "$f/f_e$", "ylabel", "$[dB_{W/Hz}]$",
/*"aymin", (spsdmean-40.0), */∅);
if (ichk<0){
std::cerr << "[<" << § << "." << ƒ << ">] "
"graf_dis() error!" << std::endl;
return ierr;
} ierr--;
//---------------------------------------------------------------------
//[>LIBÈRE MÉMOIRE]
//---------------------------------------------------------------------
delete[] sr; sr=∅; delete[] sj; sj=∅;
delete[] freq; freq=∅; delete[] spsd; spsd=∅;
delete[] b; b=∅; delete[] fs; fs=∅;
delete[] z; z=∅; delete[] f1spsd; f1spsd=∅;
delete[] f2spsd; f2spsd=∅; delete[] f3spsd; f3spsd=∅;
delete[] f4spsd; f4spsd=∅; delete[] f5spsd; f5spsd=∅;
delete[] f10spsd; f10spsd=∅;
imgname.clear(); imgpath.clear(); legend.clear();
//---------------------------------------------------------------------
//[<LIBÈRE MÉMOIRE]
//---------------------------------------------------------------------
scltracefe(§, ƒ, ∅);
return 0;
}
/* ƒ décorée par
le 29-11-2026 13:45:32 */
Sortie
[>..\xpl\src\sclfiltr.xpl.cpp.racosinrusz_xpl]
scl-26.11 (cwin64, clang-22.1.8) : 29-11-2026 13:45:32
srvar: 0.999451
spsdmean: -0.002383 [dB(W/Hz)]
srvar : -0.002383 [dB]
Square root raised cosine filter (tap 7)
b: { -0.030338, 0.216911, 0.489993, 0.608901, 0.489993, 0.216911, -0.030338 }
Square root raised cosine filter (tap 13)
b: { 0.026897, -0.066250, -0.121755, -0.030338, 0.216911, 0.489993, 0.608901, 0.489993, 0.216911, -0.030338, -0.121755, -0.066250, 0.026897 }
Square root raised cosine filter (tap 19)
b: { -0.021784, 0.025601, 0.060769, 0.026897, -0.066250, -0.121755, -0.030338, 0.216911, 0.489993, 0.608901, 0.489993, 0.216911, -0.030338, -0.121755, -0.066250, 0.026897, 0.060769, 0.025601, -0.021784 }
Square root raised cosine filter (tap 25)
b: { 0.015795, -0.007345, -0.031871, -0.021784, 0.025601, 0.060769, 0.026897, -0.066250, -0.121755, -0.030338, 0.216911, 0.489993, 0.608901, 0.489993, 0.216911, -0.030338, -0.121755, -0.066250, 0.026897, 0.060769, 0.025601, -0.021784, -0.031871, -0.007345, 0.015795 }
Square root raised cosine filter (tap 31)
b: { -0.009801, -0.001250, 0.014624, 0.015795, -0.007345, -0.031871, -0.021784, 0.025601, 0.060769, 0.026897, -0.066250, -0.121755, -0.030338, 0.216911, 0.489993, 0.608901, 0.489993, 0.216911, -0.030338, -0.121755, -0.066250, 0.026897, 0.060769, 0.025601, -0.021784, -0.031871, -0.007345, 0.015795, 0.014624, -0.001250, -0.009801 }
Square root raised cosine filter (tap 61)
b: { -0.002334, -0.000532, 0.002530, 0.002576, -0.001059, -0.003824, -0.001684, 0.002982, 0.003864, -0.000674, -0.004487, -0.001597, 0.004580, 0.004434, -0.004129, -0.009801, -0.001250, 0.014624, 0.015795, -0.007345, -0.031871, -0.021784, 0.025601, 0.060769, 0.026897, -0.066250, -0.121755, -0.030338, 0.216911, 0.489993, 0.608901, 0.489993, 0.216911, -0.030338, -0.121755, -0.066250, 0.026897, 0.060769, 0.025601, -0.021784, -0.031871, -0.007345, 0.015795, 0.014624, -0.001250, -0.009801, -0.004129, 0.004434, 0.004580, -0.001597, -0.004487, -0.000674, 0.003864, 0.002982, -0.001684, -0.003824, -0.001059, 0.002576, 0.002530, -0.000532, -0.002334 }
<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
<< END OF DISLIN / VERSION 11.3.2 <<
<< Date : 29.11.2026 Time : 13:45:54 Pageformat: DA4L <<
<< Vectors : 9315 Warnings: 0 Fileformat: SVG <<
<< Metafile: ./srt/racosinrusz_xpl.svg <<
<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
[<..\xpl\src\sclfiltr.xpl.cpp.racosinrusz_xpl]




