Class documentation of Concepts

Loading...
Searching...
No Matches
estimator.hh
Go to the documentation of this file.
1
6#ifndef aglowavEstimator_hh
7#define aglowavEstimator_hh
8
9#ifdef __GUNG__
10 #pragma interface
11#endif
12
13#include "function/vector.hh"
14#include "bem/space.hh"
15#include "aglowav/space.hh"
16
17namespace aglowav {
18
19 // ***************************************************************** Est01 **
20
33 template <class F = concepts::Real>
34 class Est01 {
35 public:
37 Est01(bem::AdaptiveSpace<F>& spc, uint maxdim, concepts::Real trshld);
38
42 bool refine() const {return ref_;}
43
47 void operator()(const Haar3d<F>& wavspc, const concepts::Function<F>& f);
48 void operator()(const Haar3d<F>& wavspc, const concepts::Vector<F>& f);
49
50 private:
52 bool ref_;
53 uint maxdim_;
55 concepts::Real trshld_;
58 };
59
60 template <class F>
62 uint maxdim, concepts::Real trshld)
63 : maxdim_(maxdim), trshld_(trshld), spc_(spc) {
64 ref_ = (maxdim_ > spc_.dim()) ? 1 : 0;
65 }
66
67 // ***************************************************************** Est02 **
68
87 template <class F = concepts::Real>
88 class Est02 {
89 public:
96 uint maxdim, concepts::Real trshld, concepts::Real s = 1.0);
97
101 bool refine() const {return ref_;}
105 void operator()(const Haar3d<F>& wavspc, const concepts::Function<F>& f);
107 void operator()(const Haar3d<F>& wavspc, const concepts::Vector<F>& f);
108 private:
110 bool ref_;
111 uint maxdim_;
113 concepts::Real trshld2_;
118 };
119
120 template <class F>
122 uint maxdim, concepts::Real trshld, concepts::Real s)
123 : maxdim_(maxdim), trshld2_(trshld*trshld), s_(s), spc_(spc) {
124
125 ref_ = (maxdim_ > spc_.dim()) ? 1 : 0;
126 if (s_ > 1.0)
127 std::cout << "Uuups really s > 1.0 ??" << std::endl;
128 }
129
130 // ***************************************************************** Est03 **
131
145 template <class F = concepts::Real>
146 class Est03 {
147 public:
150 uint maxdim, concepts::Real trshld);
151
155 bool refine() const {return ref_;}
156
160 void operator()(const Haar3d<F>& wavspc, const concepts::Function<F>& f);
161 void operator()(const Haar3d<F>& wavspc, const concepts::Vector<F>& f);
162 private:
164 bool ref_;
165 uint maxdim_;
167 concepts::Real trshld_;
170 };
171
172 template <class F>
174 uint maxdim, concepts::Real trshld)
175 : maxdim_(maxdim), trshld_(trshld), spc_(spc) {
176 ref_ = (maxdim_ > spc_.dim()) ? 1 : 0;
177 }
178
179 // ***************************************************************** Est04 **
180
192 template <class F = concepts::Real>
193 class Est04 {
194 public:
197 uint maxdim, concepts::Real trshld, concepts::Real s = 1.0);
198
202 bool refine() const {return ref_;}
206 void operator()(const Haar3d<F>& wavspc, const concepts::Function<F>& f);
208 void operator()(const Haar3d<F>& wavspc, const concepts::Vector<F>& f);
209 private:
211 bool ref_;
212 uint maxdim_;
214 concepts::Real trshld2_;
219 };
220
221 template <class F>
223 uint maxdim, concepts::Real trshld, concepts::Real s)
224 : maxdim_(maxdim), trshld2_(trshld*trshld), s_(s), spc_(spc) {
225 ref_ = (maxdim_ > spc_.dim()) ? 1 : 0;
226 }
227
228} // namespace aglowav
229
230#endif // aglowavEstimator_hh
bool refine() const
Definition estimator.hh:42
void operator()(const Haar3d< F > &wavspc, const concepts::Function< F > &f)
Est01(bem::AdaptiveSpace< F > &spc, uint maxdim, concepts::Real trshld)
Constructor.
Definition estimator.hh:61
void operator()(const Haar3d< F > &wavspc, const concepts::Function< F > &f)
bool refine() const
Definition estimator.hh:101
void operator()(const Haar3d< F > &wavspc, const concepts::Vector< F > &f)
Est02(bem::AdaptiveSpace< F > &spc, uint maxdim, concepts::Real trshld, concepts::Real s=1.0)
Definition estimator.hh:121
Est03(bem::AdaptiveSpace< F > &spc, uint maxdim, concepts::Real trshld)
Constructor.
Definition estimator.hh:173
bool refine() const
Definition estimator.hh:155
void operator()(const Haar3d< F > &wavspc, const concepts::Function< F > &f)
void operator()(const Haar3d< F > &wavspc, const concepts::Vector< F > &f)
bool refine() const
Definition estimator.hh:202
void operator()(const Haar3d< F > &wavspc, const concepts::Function< F > &f)
Est04(bem::AdaptiveSpace< F > &spc, uint maxdim, concepts::Real trshld, concepts::Real s=1.0)
Constructor.
Definition estimator.hh:222
double Real
Definition typedefs.hh:39