The SDL Component Suite is an industry leading collection of components supporting scientific and engineering computing. Please visit the SDL Web site for more information....



LoadFromXMLFile


Unit:SDL_kohonen
Class:TKohonen
Declaration:function LoadFromXMLFile (FName: string; DataID: string): boolean;

The function LoadFromXMLFile reads the network parameters from the file FName and configures the network according to the read parameters. If the parameter DataID is empty, the first <kohonen> tag is evaluated and read into the Kohonen map. If DataID is not empty, the entire file is read until a <kohonen> tag is found whose attribute "id " matches DataID (the recognition of the "id " attribute is not case-sensitive). The function LoadFromXMLFile returns TRUE if both a valid starting tag <kohonen> and a valid end tag </kohonen> has been found and the network parameters have been updated.

Hint: The XML description of the network parameters has to follow a certain order: the size of the Kohonen map and the number of input sensors have to precede all other data of the control.

Example: This method is used in the following example program (see http://www.lohninger.com/examples.html for downloading the code): kohmap



Last Update: 2023-Dec-13