33 for(
int i=0;
i<
N;
i++) x[
i] =
rnd.Gaus();
34 for(
int i=0;
i<
N;
i++) w[
i] =
rnd.Gaus();
35 for(
int i=0;
i<
N;
i++) y[
i] =
rnd.Gaus();
36 for(
int i=0;
i<
N;
i++) z[
i] =
rnd.Gaus();
69 cout <<
"HARD:" << endl;
70 cout <<
"Ratio rms: (" << clean.
rms() <<
"/" << H.
rms() <<
")= " << clean.
rms()/H.
rms() << endl;
72 cout <<
"x : " << x.
mean() <<
" " << x.
rms() << endl;
73 cout <<
"clean : " << clean.
mean() <<
" " << clean.
rms() << endl;
75 cout <<
"clean-x : " << clean.
mean() <<
" " << clean.
rms() << endl;
76 cout <<
"-------------------" << endl;
81 r_s.
solve(0, 20,
's');
86 cout <<
"SOFT:" << endl;
87 cout <<
"Ratio rms: (" << clean.
rms() <<
"/" << H.
rms() <<
")= " << clean.
rms()/H.
rms() << endl;
89 cout <<
"x : " << x.
mean() <<
" " << x.
rms() << endl;
90 cout <<
"clean : " << clean.
mean() <<
" " << clean.
rms() << endl;
92 cout <<
"clean-x : " << clean.
mean() <<
" " << clean.
rms() << endl;
93 cout <<
"-------------------" << endl;
98 r_m.
solve(0, 20,
'm');
103 cout <<
"MILD:" << endl;
104 cout <<
"Ratio rms: (" << clean.
rms() <<
"/" << H.
rms() <<
")= " << clean.
rms()/H.
rms() << endl;
106 cout <<
"x : " << x.
mean() <<
" " << x.
rms() << endl;
107 cout <<
"clean : " << clean.
mean() <<
" " << clean.
rms() << endl;
109 cout <<
"clean-x : " << clean.
mean() <<
" " << clean.
rms() << endl;
110 cout <<
"-------------------" << endl;
116 c1->SetCanvasSize(1600,800);
121 plot.
graph[0]->SetTitle(
"Eigen-values of all layers");
124 TPad*
P=(TPad*)c1->GetPad(2);
132 TMultiGraph*
mg=
new TMultiGraph();
143 mg->SetTitle(
"HARD: Ranking for all layers");
150 TMultiGraph* mg_s=
new TMultiGraph();
151 TGraph* g_s=
new TGraph(freq_s.
size(),freq_s.
data,rank_s.
data);
152 g_s->SetLineColor(1);
154 TGraph* g1_s=
new TGraph(freq_s.
size(),freq_s.
data,rank1_s.
data);
155 g1_s->SetLineColor(2);
157 TGraph* g2_s=
new TGraph(freq_s.
size(),freq_s.
data,rank2_s.
data);
158 g2_s->SetLineColor(3);
161 mg_s->SetTitle(
"SOFT: Ranking for all layers");
168 TMultiGraph* mg_m=
new TMultiGraph();
169 TGraph* g_m=
new TGraph(freq_m.
size(),freq_m.
data,rank_m.
data);
170 g_m->SetLineColor(1);
172 TGraph* g1_m=
new TGraph(freq_m.
size(),freq_m.
data,rank1_m.
data);
173 g1_m->SetLineColor(2);
175 TGraph* g2_m=
new TGraph(freq_m.
size(),freq_m.
data,rank2_m.
data);
176 g2_m->SetLineColor(3);
179 mg_m->SetTitle(
"MILD: Ranking for all layers");
181 c1->SaveAs(
"Test7.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)