#include <OneDT.h>
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) |
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