OneDT Class Reference

#include <OneDT.h>

Inheritance diagram for OneDT:

TopologyImp

List of all members.

Public Member Functions

Value_Type distance (int bmu, int i, int dimensions[MaxDimension], int type)
 XXXXXXXX.
int Coord (int pos, int axis, int dimensions[MaxDimension])
 XXXXXXXX.
TMatrix LinInitCoords (int mapsize, int dimensions[MaxDimension])
 XXXXXXXX.
TMatrix CreateDelta (int dimensions[MaxDimension], int lattice, int mapsize)
 XXXXXXXX.
Value_Type H (const Value_Type delta, Value_Type radius, int neighboor)
 XXXXXXXX.
vector< int > getNeighbors (int i, int neighbor, int dimensions[])
 XXXXXXXX.
 OneDT (const TopolParams &par)
 Constructor.
void Save (TMatrix tsp_result, string nick, int number_of_neurons)
 saves the coordenates of the neurons (after the training) and cities at text files
void Order_Labels (Value_Type city_x, Value_Type city_y, TvecLabel &cities_labels, int begin_city, int end_city, TMatrix cities_xy)
TMatrix Extract_Path (TLabel neurons_labels, TMatrix cities, int number_of_neurons)


Detailed Description

Implements ...

Author:
Marco Aurelio
Examples:

main_caixeiro_viajante.cpp, and main_tsp.cpp.


Member Function Documentation

void OneDT::Order_Labels ( Value_Type  city_x,
Value_Type  city_y,
TvecLabel &  cities_labels,
int  begin_city,
int  end_city,
TMatrix  cities_xy 
)

reorganizes the neurons' orientation , changing from the situation pointing various neurons for one city to one neuron per city

TMatrix OneDT::Extract_Path ( TLabel  neurons_labels,
TMatrix  cities,
int  number_of_neurons 
)

interprets the path indicaded by the neuron's coordenates , giving the path in the "real" coordenates of cities

Examples:
main_caixeiro_viajante.cpp, and main_tsp.cpp.


The documentation for this class was generated from the following file:
Generated on Tue Aug 7 16:03:33 2007 for SOMCode by  doxygen 1.5.3