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++) y[
i] =
rnd.Gaus();
70 cout <<
"HARD:" << endl;
71 cout <<
"Ratio rms: (" << clean.
rms() <<
"/" << H.
rms() <<
")= " << clean.
rms()/H.
rms() << endl;
73 cout <<
"x : " << x.
mean() <<
" " << x.
rms() << endl;
74 cout <<
"clean : " << clean.
mean() <<
" " << clean.
rms() << endl;
76 cout <<
"clean-x : " << clean.
mean() <<
" " << clean.
rms() << endl;
77 cout <<
"-------------------" << endl;
82 r_s.
solve(0, 20,
's');
87 cout <<
"SOFT:" << endl;
88 cout <<
"Ratio rms: (" << clean.
rms() <<
"/" << H.
rms() <<
")= " << clean.
rms()/H.
rms() << endl;
90 cout <<
"x : " << x.
mean() <<
" " << x.
rms() << endl;
91 cout <<
"clean : " << clean.
mean() <<
" " << clean.
rms() << endl;
93 cout <<
"clean-x : " << clean.
mean() <<
" " << clean.
rms() << endl;
94 cout <<
"-------------------" << endl;
99 r_m.
solve(0, 20,
'm');
104 cout <<
"MILD:" << endl;
105 cout <<
"Ratio rms: (" << clean.
rms() <<
"/" << H.
rms() <<
")= " << clean.
rms()/H.
rms() << endl;
107 cout <<
"x : " << x.
mean() <<
" " << x.
rms() << endl;
108 cout <<
"clean : " << clean.
mean() <<
" " << clean.
rms() << endl;
110 cout <<
"clean-x : " << clean.
mean() <<
" " << clean.
rms() << endl;
111 cout <<
"-------------------" << endl;
117 c1->SetCanvasSize(1600,800);
122 plot.
graph[0]->SetTitle(
"Eigen-values of all layers");
125 TPad*
P=(TPad*)c1->GetPad(2);
133 TMultiGraph*
mg=
new TMultiGraph();
144 mg->SetTitle(
"HARD: Ranking for all layers");
151 TMultiGraph* mg_s=
new TMultiGraph();
152 TGraph* g_s=
new TGraph(freq_s.
size(),freq_s.
data,rank_s.
data);
153 g_s->SetLineColor(1);
155 TGraph* g1_s=
new TGraph(freq_s.
size(),freq_s.
data,rank1_s.
data);
156 g1_s->SetLineColor(2);
158 TGraph* g2_s=
new TGraph(freq_s.
size(),freq_s.
data,rank2_s.
data);
159 g2_s->SetLineColor(3);
162 mg_s->SetTitle(
"SOFT: Ranking for all layers");
169 TMultiGraph* mg_m=
new TMultiGraph();
170 TGraph* g_m=
new TGraph(freq_m.
size(),freq_m.
data,rank_m.
data);
171 g_m->SetLineColor(1);
173 TGraph* g1_m=
new TGraph(freq_m.
size(),freq_m.
data,rank1_m.
data);
174 g1_m->SetLineColor(2);
176 TGraph* g2_m=
new TGraph(freq_m.
size(),freq_m.
data,rank2_m.
data);
177 g2_m->SetLineColor(3);
180 mg_m->SetTitle(
"MILD: Ranking for all layers");
182 c1->SaveAs(
"Test5.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)