|
Structural deformable models
|
#include <ExpMap.h>


Public Types | |
| typedef std::map< dword, EMDistribution * > | EDistributions |
Public Types inherited from EMDistribution | |
| enum | EDFlags { ED_NONE =0, ED_OLD =1 } |
Public Member Functions | |
| ExpectationMap () | |
| ExpectationMap (const Model &model) | |
| ExpectationMap (const ExpectationMap &rhs) | |
| virtual | ~ExpectationMap () |
| ExpectationMap & | operator= (const ExpectationMap &rhs) |
| virtual EMDistribution * | copy () const |
| float | ratePropVec (const PropVec &prop, Winner *winner=NULL) const |
| void | setRepresentative (const Model &model) |
| Model & | getRepresentative () |
| void | add (EMDistribution *ed) |
| void | add (EMDistribution *ed, dword wid) |
| void | add (const EDistributions &distlist) |
| bool | erase (dword wid) |
| bool | hasDist (dword wid) const |
| EMDistribution * | getEDist (dword wid) |
| const EMDistribution * | getEDist (dword wid) const |
| EDistributions & | getDistList () |
| virtual PropVec | getPropVec () const |
| Model * | generateInstance () const |
| float | updateIntegral () |
| void | clear (bool oldonly=false) |
| void | markAllOld () |
| dword | getShootCount (dword wid) const |
| operator bool () const | |
Public Member Functions inherited from EMDRect | |
| EMDRect (const PropVec &lb=PropVec(0.f), const PropVec &ub=PropVec(1.f)) | |
| virtual | ~EMDRect () |
| PropVec & | clamp (PropVec &v) |
| const PropVec & | getUB () const |
| const PropVec & | getLB () const |
| void | setUB (const PropVec &ub) |
| void | setLB (const PropVec &lb) |
Public Member Functions inherited from EMDistribution | |
| EMDistribution () | |
| virtual | ~EMDistribution () |
| virtual void | setIntegral (float integral) |
| void | setCreator (const Winner &creator) |
| void | setShootCount (dword scount) |
| dword | getShootCount () const |
| bool | hasFlags (dword flags) const |
| void | setFlags (dword flags) |
| void | unsetFlags (dword flags=0xffffffff) |
Static Public Member Functions | |
| static void | correctLBUB (PropVec &lb, PropVec &ub) |
Protected Attributes | |
| Model | m_Representative |
| EDistributions | m_Distributions |
| std::map< float, EMDistribution * > | m_SortDist |
Additional Inherited Members | |
Public Attributes inherited from EMDRect | |
| PropVec | m_LB |
| PropVec | m_UB |
Public Attributes inherited from EMDistribution | |
| float | m_Integral |
| Winner | m_Creator |
| dword | m_ShootCount |
| dword | m_Flags |
| typedef std::map<dword,EMDistribution*> ExpectationMap::EDistributions |
|
inline |
|
inline |
Definition at line 147 of file ExpMap.h.
|
inline |
Definition at line 149 of file ExpMap.h.
|
inlinevirtual |
| void ExpectationMap::add | ( | EMDistribution * | ed | ) |
Definition at line 23 of file ExpMap.cpp.
References EMDistribution::m_Creator, m_Distributions, Winner::m_WinnerID, Winner::WID_EMPTY, and Winner::WID_FIRSTFREE.
Referenced by add(), MStructure::addExpectation(), main(), operator=(), MStructure::rebuildExpMap(), and Brain::setupSearch().
| void ExpectationMap::add | ( | EMDistribution * | ed, |
| dword | wid | ||
| ) |
Definition at line 34 of file ExpMap.cpp.
References erase(), m_Distributions, and updateIntegral().
| void ExpectationMap::add | ( | const EDistributions & | distlist | ) |
| void ExpectationMap::clear | ( | bool | oldonly = false | ) |
Definition at line 141 of file ExpMap.cpp.
References EMDistribution::ED_OLD, m_Distributions, and updateIntegral().
Referenced by Searcher::clear(), operator=(), and MStructure::rebuildExpMap().
|
virtual |
Reimplemented from EMDRect.
Definition at line 13 of file ExpMap.cpp.
References ExpectationMap().
Definition at line 193 of file ExpMap.cpp.
References VVector< T, D >::clampLB(), VVector< T, D >::clampUB(), getPropDir(), getPropScale(), M_PI, mapAngle2PI(), MIN_SCALE, setPropDir(), and setPropScale().
Referenced by MStructure::addExpectation(), SubStructure::generateEMDist(), MStructure::rebuildExpMap(), Searcher::setExpectationMap(), and Brain::setupSearch().
| bool ExpectationMap::erase | ( | dword | wid | ) |
| Model * ExpectationMap::generateInstance | ( | ) | const |
Definition at line 184 of file ExpMap.cpp.
References Model::adaptProperties(), getPropVec(), and m_Representative.
Referenced by Searcher::distribute(), Searcher::evolve(), and main().
|
inline |
| EMDistribution * ExpectationMap::getEDist | ( | dword | wid | ) |
Definition at line 65 of file ExpMap.cpp.
References m_Distributions, and NULL.
Referenced by MStructure::addExpectation(), and getShootCount().
| const EMDistribution * ExpectationMap::getEDist | ( | dword | wid | ) | const |
|
virtual |
Reimplemented from EMDRect.
Definition at line 86 of file ExpMap.cpp.
References VVector< T, D >::clamp(), frand, getIdentityPropTF(), getPropDir(), m_Distributions, EMDistribution::m_Integral, EMDRect::m_LB, m_SortDist, EMDRect::m_UB, mapAngle2PI(), and setPropDir().
Referenced by generateInstance(), and main().
|
inline |
Definition at line 156 of file ExpMap.h.
Referenced by Searcher::buildBins(), Searcher::distribute(), Searcher::reattachSensors(), and MStructure::rebuildExpMap().
Definition at line 79 of file ExpMap.cpp.
References getEDist(), and EMDistribution::getShootCount().
| bool ExpectationMap::hasDist | ( | dword | wid | ) | const |
| void ExpectationMap::markAllOld | ( | ) |
Definition at line 159 of file ExpMap.cpp.
References EMDistribution::ED_OLD, and m_Distributions.
Referenced by MStructure::rebuildExpMap().
| ExpectationMap & ExpectationMap::operator= | ( | const ExpectationMap & | rhs | ) |
Definition at line 4 of file ExpMap.cpp.
References add(), clear(), m_Distributions, and m_Representative.
Reimplemented from EMDRect.
Definition at line 107 of file ExpMap.cpp.
References Winner::clearRatings(), getPropDir(), Winner::m_BestRating, m_Distributions, EMDRect::m_LB, mapAngle2PI(), Winner::rateBy(), EMDRect::ratePropVec(), and setPropDir().
Referenced by Searcher::evolve().
| void ExpectationMap::setRepresentative | ( | const Model & | model | ) |
Definition at line 18 of file ExpMap.cpp.
References m_Representative.
Referenced by MStructure::rebuildExpMap(), and Brain::setupSearch().
| float ExpectationMap::updateIntegral | ( | ) |
Definition at line 167 of file ExpMap.cpp.
References m_Distributions, EMDistribution::m_Integral, and m_SortDist.
Referenced by add(), clear(), main(), and Searcher::setExpectationMap().
|
protected |
Definition at line 176 of file ExpMap.h.
Referenced by add(), clear(), erase(), getEDist(), getPropVec(), hasDist(), markAllOld(), operator=(), ratePropVec(), and updateIntegral().
|
protected |
Definition at line 175 of file ExpMap.h.
Referenced by generateInstance(), operator=(), and setRepresentative().
|
protected |
Definition at line 177 of file ExpMap.h.
Referenced by getPropVec(), and updateIntegral().
1.8.11