31 for(
int i=0;
i<
N;
i++) x[
i] =
rnd.Gaus();
32 for(
int i=0;
i<
N;
i++) w[
i] =
rnd.Gaus();
33 for(
int i=0;
i<
N;
i++) y[
i] =
rnd.Gaus();
48 r.
add(tfmap,const_cast<char*>(
"hchannel"));
51 r.
add(A,const_cast<char*>(
"witness"));
52 r.
add(B,const_cast<char*>(
"witness"));
65 cout <<
"HARD:" << endl;
66 cout <<
"Ratio rms: (" << clean.
rms() <<
"/" << H.
rms() <<
")= " << clean.
rms()/H.
rms() << endl;
68 cout <<
"x : " << x.
mean() <<
" " << x.
rms() << endl;
69 cout <<
"clean : " << clean.
mean() <<
" " << clean.
rms() << endl;
71 cout <<
"clean-x : " << clean.
mean() <<
" " << clean.
rms() << endl;
72 cout <<
"-------------------" << endl;
77 r_s.
solve(0, 20,
's');
82 cout <<
"SOFT:" << endl;
83 cout <<
"Ratio rms: (" << clean.
rms() <<
"/" << H.
rms() <<
")= " << clean.
rms()/H.
rms() << endl;
85 cout <<
"x : " << x.
mean() <<
" " << x.
rms() << endl;
86 cout <<
"clean : " << clean.
mean() <<
" " << clean.
rms() << endl;
88 cout <<
"clean-x : " << clean.
mean() <<
" " << clean.
rms() << endl;
89 cout <<
"-------------------" << endl;
94 r_m.
solve(0, 20,
'm');
99 cout <<
"MILD:" << endl;
100 cout <<
"Ratio rms: (" << clean.
rms() <<
"/" << H.
rms() <<
")= " << clean.
rms()/H.
rms() << endl;
102 cout <<
"x : " << x.
mean() <<
" " << x.
rms() << endl;
103 cout <<
"clean : " << clean.
mean() <<
" " << clean.
rms() << endl;
105 cout <<
"clean-x : " << clean.
mean() <<
" " << clean.
rms() << endl;
106 cout <<
"-------------------" << endl;
112 c1->SetCanvasSize(1600,800);
116 plot.
plot(eigen,const_cast<char*>(
"alp"),1);
117 plot.
graph[0]->SetTitle(
"Eigen-values of all layers");
120 TPad* P=(TPad*)c1->GetPad(2);
128 TMultiGraph*
mg=
new TMultiGraph();
138 mg->Draw(const_cast<char*>(
"alp"));
139 mg->SetTitle(
"HARD: Ranking for all layers");
146 TMultiGraph* mg_s=
new TMultiGraph();
147 TGraph* g_s=
new TGraph(freq_s.
size(),freq_s.
data,rank_s.
data);
148 g_s->SetLineColor(1);
150 TGraph* g1_s=
new TGraph(freq_s.
size(),freq_s.
data,rank1_s.
data);
151 g1_s->SetLineColor(2);
153 TGraph* g2_s=
new TGraph(freq_s.
size(),freq_s.
data,rank2_s.
data);
154 g2_s->SetLineColor(3);
156 mg_s->Draw(const_cast<char*>(
"alp"));
157 mg_s->SetTitle(
"SOFT: Ranking for all layers");
164 TMultiGraph* mg_m=
new TMultiGraph();
165 TGraph* g_m=
new TGraph(freq_m.
size(),freq_m.
data,rank_m.
data);
166 g_m->SetLineColor(1);
168 TGraph* g1_m=
new TGraph(freq_m.
size(),freq_m.
data,rank1_m.
data);
169 g1_m->SetLineColor(2);
171 TGraph* g2_m=
new TGraph(freq_m.
size(),freq_m.
data,rank2_m.
data);
172 g2_m->SetLineColor(3);
174 mg_m->Draw(const_cast<char*>(
"alp"));
175 mg_m->SetTitle(
"MILD: Ranking for all layers");
177 c1->SaveAs(
"Test6.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)