Operation |
Details |
public Umatrix(): |
|
public Umatrix( KohonenNetwork SOM, Point DrawingPosition, Size DrawingSize): |
|
public Umatrix( KohonenNetwork SOM): |
|
public Umatrix( KohonenNetwork SOM, int top, int bottom, int left, int right): |
|
public BottomColor():Color |
<<property>> Notes: | Color for the nearest neurons | |
public TopColor():Color |
<<property>> Notes: | Color for the most distant neurons | |
public DrawingPosition():Point |
<<property>> Notes: | Position, where U-matrix will be painted | |
public DrawingSize():Size |
<<property>> Notes: | Size of rectangle, where will U-matrix painted | |
public SOM():KohonenNetwork |
<<property>> Notes: | Network for drawing | |
public IsEmpty():bool |
<<property>> Notes: | if SOM == null then isEmpty return true, else false. | |
public DrawText():bool |
<<property>> Notes: | If true, then will be painted RowName of rows from table next to neurons | |
public DrawClusters():bool |
<<property>> Notes: | if true, then will be painted border between neurons from diferent clusters. | |
public DrawClusterID():bool |
<<property>> Notes: | if true, then will be painted cluster ID of neuron. | |
public DrawingRectangle( int left, int right, int top, int bottom):void |
Notes: | set of rectangle for drawing | |
private CalculateHexagonPosition():void |
Notes: | Calculate position of hexagons | |
private ClearTextField():void |
Notes: | Remove Row Name from neurons. | |
private SetNeurons():void |
|
private SetDistance():void |
Notes: | Set distance between neurons | |
private SetClustersSeparators():void |
Notes: | Set cluster separators | |
private SetColors():void |
Notes: | Set colors for all hexagons in U-matrix. Colors are normalized for interval (0, mostDistancedNeuron) | |
private SetDescriptiveText():void |
Notes: | Set descriptive text (Row name). Get all rows from table, and for every row find nearest neuron. For this neuron add row name to Hexagon.Text properties. Set descriptive text is very demanding operation. Complexity of this operation is O(M*N), whre M is count of neurons in networks and N is count of entries in table. | |
public getPoint( int index, int width, int height):Point |
Notes: | Convert point in one dimensional array to two dimensional posision in array with "width" x "height" size
@returns | |
private FindWinner( double[] vector):int |
Notes: | Find the nearest neuron for given vector
@returns index of winner neurons | |
public Distance( double[] vector, double[] weights):double |
Notes: | Calculate Euclidian distance between tvo vectors
@returns | |
private NormalizedColor( Color bottomColor, Color topColor, double dist, double max):Color |
Notes: | Normalized color. BottomColor is maped to 0 and TopColor is maped to max. Color between them are liner maped to interval (0, max).
@returns color for dist parameter | |
private FindMaxDistance():double |
Notes: | Run through array of hexagon, and find the maximum distance between neurons
@returns maximum distance | |
private GetHexagonVertex( PointF position, float a, float b):PointF |
Notes: | Return a position of hexagon vertex
@returns array of hexagon vertex | |
public Draw( Graphics grfx):void |
|
public Draw( Graphics grfx, int top, int left, int bottom, int right):void |
|