#include <point.hxx>
Definition at line 28 of file point.hxx.
◆ Point()
◆ ~Point()
◆ inform()
Definition at line 60 of file point.cxx.
61{
63
67#ifdef SHOW
68 std::cout << "@" ;
69#endif
71 break;
74#ifdef SHOW
75 std::cout << "-" ;
76#endif
79 delete &obj;
80 }
81 else {
82#ifdef SHOW
83 std::cout << "+" ;
84#endif
88 delete tmp;
89 }
90 break;
93#ifdef SHOW
94 std::cout << "P" ;
95#endif
98 delete &obj;
103 }
104 else {
105#ifdef SHOW
106 std::cout << "p" ;
107#endif
110 }
111 break;
114#ifdef SHOW
115 std::cout << "M" ;
116#endif
119 delete &obj;
120 }
121 else {
122#ifdef SHOW
123 std::cout << "m" ;
124#endif
127 }
128 break;
130#ifdef SHOW
131 std::cout << "X" ;
132#endif
135 break;
136 default :
137 std::cout << "pbl inform" << std::endl ;
138 break;
139 }
140 return res;
141}
std::vector< double > * obj
References BAD, BADEST, baryc, courant, etat, FIRST, GOOD, minim, Solution::obj, SOBAD, SOGOOD, START, start, TOOBAD, and TOOGOOD.
◆ milieu()
| std::vector< double > * Point::milieu |
( |
std::vector< double > & |
un, |
|
|
std::vector< double > & |
deux |
|
) |
| |
|
private |
◆ mute()
◆ next()
| std::vector< double > * Point::next |
( |
void |
| ) |
|
Definition at line 163 of file point.cxx.
164{
165 double d, dd;
167
171 break;
174 break;
177 break;
180 break;
183 break;
184 default:
185
186 std::cout << "pbl next" << std::endl ;
187 }
189 d=0.0;
191 dd = (*courant)[0] - (*baryc)[0];
192 d += dd*dd;
193 }
194 }
195 else
196 d=1.0;
198
199 return (std::vector<double> *) NULL;
200 }
201 else
203}
virtual std::vector< double > * gen(void)
std::vector< double > * symetrique(std::vector< double > &, std::vector< double > &)
std::vector< double > * milieu(std::vector< double > &, std::vector< double > &)
std::vector< double > * param
References BAD, baryc, courant, epsil, etat, FIRST, Aleatoire::gen(), GOOD, yacsorb.CORBAEngineTest::i, milieu(), minim, Solution::param, rnd, size, START, start, symetrique(), and TOOBAD.
◆ reinit()
| void Point::reinit |
( |
void |
| ) |
|
◆ symetrique()
| std::vector< double > * Point::symetrique |
( |
std::vector< double > & |
pt, |
|
|
std::vector< double > & |
centr |
|
) |
| |
|
private |
Definition at line 205 of file point.cxx.
206{
208 double coef, tmp;
209 std::vector<double> *res;
210
211
212 coef = 1.0;
214 tmp = (centr[
i]-pt[
i] > 0.0) ?
215 (1.0 - centr[
i]) / (centr[
i] - pt[
i]) :
216 centr[
i] / (pt[
i] - centr[
i]) ;
217 coef = (coef < tmp) ? coef : tmp ;
218 }
219
220 res =
new std::vector<double>(
size);
222 (*res)[
i] = centr[
i] + coef * (centr[
i] - pt[
i]);
223 return res;
224}
References yacsorb.CORBAEngineTest::i, and size.
Referenced by next().
◆ baryc
| std::vector<double> * Point::baryc |
|
private |
◆ courant
| std::vector<double>* Point::courant |
|
private |
◆ epsil
◆ etat
◆ minim
| std::vector<double> * Point::minim |
|
private |
◆ rnd
◆ size
◆ start
The documentation for this class was generated from the following files: