#include <Unit.h>
Public Member Functions | |
| Unit (unit_list const *const units, const featurevector pos) | |
| Unit (unit_list const *const units, const featurevector pos, unsigned long id) | |
| virtual | ~Unit () |
| Unit * | splitUnit () |
| double | getShortTermError () const |
| void | setShortTermError (double error) |
| double | getLongTermError () const |
| void | setLongTermError (double error) |
| void | updateErrors (const featurevector *sample) |
| double | getInsertionError () const |
| void | setInsertionError (double error) |
| double | getInsertionThreshold () const |
| void | setInsertionThreshold (double threshold) |
| void | updateInsertionThreshold () |
| double | getYouth () const |
| void | setYouth (double youth) |
| void | decreaseYouth () |
| void | decreaseInsertionThreshold () |
| const featurevector * | getPosition () const |
| double | getDistance (const featurevector *sample) const |
| void | moveTowards (const featurevector *sample) |
| double | getQualityLearning () const |
| double | getQualityInsertion () const |
| double | getLearningRate (bool isWinner) const |
| void | calculateLocalSimilarity () const |
| double | getLocalSimilarity () const |
| unsigned long | getMetaId () const |
| void | ageEdge (Unit *u) |
| void | ageEdges () |
| void | addEdge (Unit *u) |
| void | removeEdge (Unit *u) |
| void | setEdgeAge (Unit *u, unsigned long age) |
| edge_map::size_type | getEdgeCount () const |
| edge_map * | getEdges () |
| string | serialize () const |
| size_t | unserialize (const featurevector &features, const string data) |
| bool | operator< (Unit *u) |
| bool | operator> (Unit *u) |
| bool | operator!= (Unit *u) |
| bool | operator== (Unit *u) |
Static Public Member Functions | |
| static size_t | getNumMetaIds () |
| static unsigned long | getMaxMetaId () |
| static void | clearMetaIds () |
| static void | reserveMetaId (unsigned long meta_id) |
| static void | releaseMetaId (unsigned long meta_id) |
|
||||||||||||
|
|
|
||||||||||||||||
|
|
|
|
Destructor |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
||||||||||||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
||||||||||||
|
|
|
|
|
|
|
|
1.4.6