The Complete SPRLIB & ANNLIB

koh_draw_init

- initialize the variables for drawing a Kohonen map

SYNOPSIS

int koh_draw_init (net)

ARGUMENTS

NET *net A pointer to a Kohonen type NET.

RETURNS

TRUE in case of an error, FALSE in case of succes.

FUNCTION

The function fills the array **koh_draw_order (see KOHONEN-DRAW-variables). The net 's NumOutputDims field should have the value 2, since the drawing routines can only display two-dimensional Kohonen maps. The array **koh_draw_order is filled by walking down the linked list of units in net (FirstUnit) and placing the pointers to the units in the array. The index into the array is calculated using the InOutIndex field of each unit. This field contains a long value (4 bytes) in which each byte indicates the offset in one dimension.

NOTE

The function koh_draw_free should be called when the drawing is finished to free the **koh_draw_order array.

SEE ALSO

koh_draw_free, koh_weight_draw

This document was generated using api2html on Thu Mar 5 09:00:00 MET DST 1998