17 cout <<
"w srate " << w.
rate() << endl;
18 cout <<
"w start " << w.
start() << endl;
19 cout <<
"w stop " << w.
stop() << endl;
20 cout <<
"w size " << w.
size() << endl;
24 double srate = 2*4300;
33 cout <<
"ww srate " << ww.
rate() << endl;
34 cout <<
"ww start " << ww.
start() << endl;
35 cout <<
"ww stop " << ww.
stop() << endl;
36 cout <<
"ww size " << ww.
size() << endl;
41 cout <<
"resampled ww srate " << ww.
rate() << endl;
42 cout <<
"resampled ww start " << ww.
start() << endl;
43 cout <<
"resampled ww stop " << ww.
stop() << endl;
44 cout <<
"resampled ww size " << ww.
size() << endl;
47 watplot plot(const_cast<char*>(
"plot"),200,20,800,500);
50 sprintf(gtitle,
"Original PSD (Black) Reasampled PSD (Red)");
51 plot.gtitle(gtitle,
"frequency (Hz)",
"strain/#sqrt{Hz}");
52 plot.goptions(const_cast<char*>(
"alp logy"), 1, 0, 0,
true, 0,w.
rate()/2.,
true, 32);
virtual void rate(double r)
CWB::frame fr(FRLIST_NAME)
plot gtitle(gtitle,"frequency (Hz)","strain/#sqrt{Hz}")
virtual void start(double s)
virtual size_t size() const
cout<< endl;cout<< "w srate "<< w.rate()<< endl;cout<< "w start "<< w.start()<< endl;cout<< "w stop "<< w.stop()<< endl;cout<< "w size "<< w.size()<< endl;cout<< endl;double srate=2 *4300;wavearray< double > ww
wavearray< double > GetWNB(double frequency, double bandwidth, double duration, int seed=0, bool mode=0)
virtual void stop(double s)
sprintf(tfres,"(1/%g)x(%g) (sec)x(Hz)", 2 *df, df)
cout<< endl;cout<< "ww srate "<< ww.rate()<< endl;cout<< "ww start "<< ww.start()<< endl;cout<< "ww stop "<< ww.stop()<< endl;cout<< "ww size "<< ww.size()<< endl;cout<< endl;fr.resample(ww, 11);cout<< endl;cout<< "resampled ww srate "<< ww.rate()<< endl;cout<< "resampled ww start "<< ww.start()<< endl;cout<< "resampled ww stop "<< ww.stop()<< endl;cout<< "resampled ww size "<< ww.size()<< endl;cout<< endl;watplot plot(const_cast< char * >"plot"), 200, 20, 800, 500);char gtitle[256];sprintf(gtitle,"Original PSD (Black) Reasampled PSD (Red)");plot.gtitle(gtitle,"frequency (Hz)","strain/#sqrt{Hz}");plot.goptions(const_cast< char * >"alp logy"), 1, 0, 0, true, 0, w.rate()/2., true, 32);w > plot
virtual void resize(unsigned int)