Commit 28ed2caa by Xavier Garrido Committed by Matthieu Tristram

### Fix warnings

parent 2cef189c
 ... ... @@ -21,68 +21,67 @@ using namespace std; //-------------------- // C // C //---------------- //--------------- // Constructors -- //---------------- OofNoise::OofNoise(AbsGauss* r,double slope,double fmin,double fknee,double fsample):AbsGauss(0.,1.),_r(r),_sigma(r->sigma()) OofNoise::OofNoise(AbsGauss* r,double slope,double fmin,double fknee,double fsample):AbsGauss(0.,1.),_r(r),_sigma(r->sigma()) { //TW: double w0=2*M_PI*fmin; double w1=2*M_PI*fknee; double Wmax=log10(w1); double Wmin=log10(w0); //TW: double w0=2*M_PI*fmin; double w1=2*M_PI*fknee; double Wmax=log10(w1); double Wmin=log10(w0); //!atention! j'utilise l'inverse double a=-slope; //!atention! j'utilise l'inverse double a=-slope; //roughly 1.5pole /per decade int Nproc=(int)((Wmax-Wmin)*2.+log10(fsample)); //roughly 1.5pole /per decade int Nproc=(int)((Wmax-Wmin)*2.+log10(fsample)); vector p(Nproc); vector z(Nproc); double dp=(Wmax-Wmin)/Nproc; p[0]=Wmin+(1-a/2)/2*dp; z[0]=p[0]+a/2*dp; vector p(Nproc); vector z(Nproc); for(int i=1;i pole(Nproc); vector zero(Nproc); for (int i=0;i pole(Nproc); vector zero(Nproc); for (int i=0;inormal(); for (unsigned i=0;ifilter(x2); return x2*_sigma; }; }