43 for(
int i=0;
i<
N;
i++) x[
i] =
rnd.Gaus();
44 for(
int i=0;
i<
N;
i++) w[
i] =
rnd.Gaus();
45 for(
int i=0;
i<
N;
i++) v[
i] =
rnd.Gaus();
46 for(
int i=0;
i<
N;
i++) y[
i] =
rnd.Gaus();
47 for(
int i=0;
i<
N;
i++) z[
i] =
rnd.Gaus();
80 cout <<
"HARD:" << endl;
81 cout <<
"Ratio rms: (" << clean.
rms() <<
"/" << H.
rms() <<
")= " << clean.
rms()/H.
rms() << endl;
83 cout <<
"x : " << x.
mean() <<
" " << x.
rms() << endl;
84 cout <<
"clean : " << clean.
mean() <<
" " << clean.
rms() << endl;
86 cout <<
"clean-x : " << clean.
mean() <<
" " << clean.
rms() << endl;
87 cout <<
"-------------------" << endl;
92 r_s.
solve(0, 20,
's');
97 cout <<
"SOFT:" << endl;
98 cout <<
"Ratio rms: (" << clean.
rms() <<
"/" << H.
rms() <<
")= " << clean.
rms()/H.
rms() << endl;
100 cout <<
"x : " << x.
mean() <<
" " << x.
rms() << endl;
101 cout <<
"clean : " << clean.
mean() <<
" " << clean.
rms() << endl;
103 cout <<
"clean-x : " << clean.
mean() <<
" " << clean.
rms() << endl;
104 cout <<
"-------------------" << endl;
109 r_m.
solve(0, 20,
'm');
114 cout <<
"MILD:" << endl;
115 cout <<
"Ratio rms: (" << clean.
rms() <<
"/" << H.
rms() <<
")= " << clean.
rms()/H.
rms() << endl;
117 cout <<
"x : " << x.
mean() <<
" " << x.
rms() << endl;
118 cout <<
"clean : " << clean.
mean() <<
" " << clean.
rms() << endl;
120 cout <<
"clean-x : " << clean.
mean() <<
" " << clean.
rms() << endl;
121 cout <<
"-------------------" << endl;
127 c1->SetCanvasSize(1600,800);
132 plot.
graph[0]->SetTitle(
"Eigen-values of all layers");
135 TPad*
P=(TPad*)c1->GetPad(2);
143 TMultiGraph*
mg=
new TMultiGraph();
154 mg->SetTitle(
"HARD: Ranking for all layers");
161 TMultiGraph* mg_s=
new TMultiGraph();
162 TGraph* g_s=
new TGraph(freq_s.
size(),freq_s.
data,rank_s.
data);
163 g_s->SetLineColor(1);
165 TGraph* g1_s=
new TGraph(freq_s.
size(),freq_s.
data,rank1_s.
data);
166 g1_s->SetLineColor(2);
168 TGraph* g2_s=
new TGraph(freq_s.
size(),freq_s.
data,rank2_s.
data);
169 g2_s->SetLineColor(3);
172 mg_s->SetTitle(
"SOFT: Ranking for all layers");
179 TMultiGraph* mg_m=
new TMultiGraph();
180 TGraph* g_m=
new TGraph(freq_m.
size(),freq_m.
data,rank_m.
data);
181 g_m->SetLineColor(1);
183 TGraph* g1_m=
new TGraph(freq_m.
size(),freq_m.
data,rank1_m.
data);
184 g1_m->SetLineColor(2);
186 TGraph* g2_m=
new TGraph(freq_m.
size(),freq_m.
data,rank2_m.
data);
187 g2_m->SetLineColor(3);
190 mg_m->SetTitle(
"MILD: Ranking for all layers");
192 c1->SaveAs(
"Test11.png");
virtual size_t size() const
static double g(double e)
void setMatrix(double edge=0., double f=1.)
virtual void rate(double r)
cout<< "skymap size : "<< L<< endl;for(int l=0;l< L;l++) sm.set(l, l);sm > const_cast< char * >("skymap.dat")
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 double mean() 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 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)