#include <point.hxx>
|
std::vector< double > * | symetrique (std::vector< double > &, std::vector< double > &) |
|
std::vector< double > * | milieu (std::vector< double > &, std::vector< double > &) |
|
Definition at line 28 of file point.hxx.
Solution * Point::inform |
( |
std::vector< double > & |
obj | ) |
|
Definition at line 60 of file point.cxx.
References BAD, BADEST, baryc, courant, etat, FIRST, GOOD, minim, Solution::obj, SOBAD, SOGOOD, START, start, TOOBAD, and TOOGOOD.
137 std::cout <<
"pbl inform" << std::endl ;
std::vector< double > * Point::milieu |
( |
std::vector< double > & |
un, |
|
|
std::vector< double > & |
deux |
|
) |
| |
|
private |
void Point::mute |
( |
Solution & |
pt, |
|
|
std::vector< double > & |
bary, |
|
|
std::vector< double > & |
minm |
|
) |
| |
std::vector< double > * Point::next |
( |
void |
| ) |
|
Definition at line 163 of file point.cxx.
References BAD, baryc, courant, epsil, etat, FIRST, Aleatoire::gen(), GOOD, CORBAEngineTest::i, milieu(), minim, Solution::param, rnd, size, START, start, symetrique(), and TOOBAD.
186 std::cout <<
"pbl next" << std::endl ;
190 for (i=0; i<
size; i++) {
191 dd = (*courant)[0] - (*baryc)[0];
199 return (std::vector<double> *) NULL;
void Point::reinit |
( |
void |
| ) |
|
std::vector< double > * Point::symetrique |
( |
std::vector< double > & |
pt, |
|
|
std::vector< double > & |
centr |
|
) |
| |
|
private |
Definition at line 205 of file point.cxx.
References CORBAEngineTest::i, and size.
Referenced by next().
209 std::vector<double> *res;
213 for (i=0; i<
size; i++) {
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 ;
220 res =
new std::vector<double>(
size);
221 for (i=0; i<
size; i++)
222 (*res)[
i] = centr[
i] + coef * (centr[
i] - pt[
i]);
std::vector<double> * Point::baryc |
|
private |
std::vector<double>* Point::courant |
|
private |
std::vector<double> * Point::minim |
|
private |
The documentation for this class was generated from the following files: