36 for(
int i=0;
i<
N;
i++) x[
i] =
rnd.Gaus();
37 for(
int i=0;
i<
N;
i++) w[
i] =
rnd.Gaus();
38 for(
int i=0;
i<
N;
i++) v[
i] =
rnd.Gaus();
39 for(
int i=0;
i<
N;
i++) y[
i] =
rnd.Gaus();
40 for(
int i=0;
i<
N;
i++) z[
i] =
rnd.Gaus();
56 r.
add(tfmap,const_cast<char*>(
"hchannel"));
59 r.
add(A,const_cast<char*>(
"witness"));
60 r.
add(B,const_cast<char*>(
"witness"));
61 r.
add(C,const_cast<char*>(
"witness"));
74 cout <<
"HARD:" << endl;
75 cout <<
"Ratio rms: (" << clean.
rms() <<
"/" << H.
rms() <<
")= " << clean.
rms()/H.
rms() << endl;
77 cout <<
"x : " << x.
mean() <<
" " << x.
rms() << endl;
78 cout <<
"clean : " << clean.
mean() <<
" " << clean.
rms() << endl;
80 cout <<
"clean-x : " << clean.
mean() <<
" " << clean.
rms() << endl;
81 cout <<
"-------------------" << endl;
86 r_s.
solve(0, 20,
's');
91 cout <<
"SOFT:" << endl;
92 cout <<
"Ratio rms: (" << clean.
rms() <<
"/" << H.
rms() <<
")= " << clean.
rms()/H.
rms() << endl;
94 cout <<
"x : " << x.
mean() <<
" " << x.
rms() << endl;
95 cout <<
"clean : " << clean.
mean() <<
" " << clean.
rms() << endl;
97 cout <<
"clean-x : " << clean.
mean() <<
" " << clean.
rms() << endl;
98 cout <<
"-------------------" << endl;
103 r_m.
solve(0, 20,
'm');
108 cout <<
"MILD:" << endl;
109 cout <<
"Ratio rms: (" << clean.
rms() <<
"/" << H.
rms() <<
")= " << clean.
rms()/H.
rms() << endl;
111 cout <<
"x : " << x.
mean() <<
" " << x.
rms() << endl;
112 cout <<
"clean : " << clean.
mean() <<
" " << clean.
rms() << endl;
114 cout <<
"clean-x : " << clean.
mean() <<
" " << clean.
rms() << endl;
115 cout <<
"-------------------" << endl;
121 c1->SetCanvasSize(1600,800);
125 plot.
plot(eigen,const_cast<char*>(
"alp"),1);
126 plot.
graph[0]->SetTitle(
"Eigen-values of all layers");
129 TPad* P=(TPad*)c1->GetPad(2);
138 TMultiGraph*
mg=
new TMultiGraph();
148 TGraph* g3=
new TGraph(freq.
size(),freq.
data,rank3.
data);
151 mg->Draw(const_cast<char*>(
"alp"));
152 mg->SetTitle(
"HARD: Ranking for all layers");
160 TMultiGraph* mg_s=
new TMultiGraph();
161 TGraph* g_s=
new TGraph(freq_s.
size(),freq_s.
data,rank_s.
data);
162 g_s->SetLineColor(1);
164 TGraph* g1_s=
new TGraph(freq_s.
size(),freq_s.
data,rank1_s.
data);
165 g1_s->SetLineColor(2);
167 TGraph* g2_s=
new TGraph(freq_s.
size(),freq_s.
data,rank2_s.
data);
168 g2_s->SetLineColor(3);
170 TGraph* g3_s=
new TGraph(freq_s.
size(),freq_s.
data,rank3_s.
data);
171 g3_s->SetLineColor(4);
173 mg_s->Draw(const_cast<char*>(
"alp"));
174 mg_s->SetTitle(
"SOFT: Ranking for all layers");
182 TMultiGraph* mg_m=
new TMultiGraph();
183 TGraph* g_m=
new TGraph(freq_m.
size(),freq_m.
data,rank_m.
data);
184 g_m->SetLineColor(1);
186 TGraph* g1_m=
new TGraph(freq_m.
size(),freq_m.
data,rank1_m.
data);
187 g1_m->SetLineColor(2);
189 TGraph* g2_m=
new TGraph(freq_m.
size(),freq_m.
data,rank2_m.
data);
190 g2_m->SetLineColor(3);
192 TGraph* g3_m=
new TGraph(freq_m.
size(),freq_m.
data,rank3_m.
data);
193 g3_m->SetLineColor(4);
195 mg_m->Draw(const_cast<char*>(
"alp"));
196 mg_m->SetTitle(
"MILD: Ranking for all layers");
198 c1->SaveAs(
"Test10.png");
static double g(double e)
void setMatrix(double edge=0., double f=1.)
virtual void rate(double r)
std::vector< TGraph * > graph
size_t add(WSeries< double > &target, char *name, double fL=0., double fH=0.)
virtual void start(double s)
void plot(wavearray< double > &, char *=NULL, int=1, double=0., double=0., bool=false, float=0., float=0., bool=false, float=0., bool=false)
virtual size_t size() const
void apply(double threshold=0., char c='a')
wavearray< double > getRank(int n)
void solve(double th, int nE=0, char c='s')
wavearray< double > vfreq
wavearray< double > getVEIGEN(int n=-1)
wavearray< double > getClean()
WDM< double > wdtf(lev, 2 *lev, 6, 10)
virtual double mean() const
virtual void stop(double s)
void Forward(int n=-1)
param: wavelet - n is number of steps (-1 means full decomposition)
virtual void resize(unsigned int)