Applet properties can be used to customize the SOM demos. See the
html source of the SOM demo pages for examples.
Common parameters
ipsint
Teaching iterations per second.
delayint
(Demos 2 and 3) Time (in milliseconds) between screen
updates in the map display.
alphafloat
The learning rate parameter alpha. In demo 1, alpha is
constant. In demos 2 and 3 this parameter tells the initial
value of alpha at the start of teaching.
radiusfloat
The neighborhood radius. In demo 1, radius is constant. In
demos 2 and 3 this parameter tells the initial value of radius
at the start of teaching.
maxiterint
(Demos 2 and 3) The length of the teaching process in number of
iterations during which alpha and radius decrease from their
initial values to their final values. When the parameters
teach their final values, the teaching stops automatically.
fontnamestring
The name of the font used in labels and buttons in the demos.
Default font name is 'Helvetica'.
fontsizeint
The size of the font used in labels and buttons in the demos.
Default size is 12.
txtstartstring
Text for the START button. Default text is 'Start'.
txtstopstring
Text for the STOP button. Default text is 'Stop'.
txtrandstring
Text for the RANDOMIZE button. Default text is 'Randomize' for
demo 1 and 'Randomize map' for demos 2 and 3.
txtresetstring
(Demos 2 and 3) Text for the RESET button. Default
text is 'Reset'.
topolstring
(Demos 2 and 3) The topology type of the map. Can be either
'rect' (rectagonal topology) or 'hexa'
(hexagonal topology). In demo 2 the map is always displayed in
rectangular grid even if hexagonal topology is selected. The
default is rect.
neighstring
(Demos 2 and 3) The heighborhood type of the map. Can be either
'bubble' or 'gaussian'. The default is
bubble.
mapwint
(Demos 2 and 3) Width of the map.
maphint
(Demos 2 and 3) Height of the map. For one-dimensional
map, use 1 as height.
Demo 1
unitsint
Number of map units.
maxalphafloat
The maximum value the user can give to the alpha parameter.
unitwint
Width of the map units.
unithint
Height of the map units.
bordersizeint
The size of the borders (and knobs) of the map units. This
parameter can be used to make the borders of the units more
visible if the size of the applet is enlarged.
Demo 2
unitsizeint
Determines the size of the map units. Map units are square and
this parameters tells the length of the side of the square.
Currently determines the size of the pies also.
piemodestring
Determines the mode of operation of the 'pies'. Possible values
are arc and sector. In arc, the
random vectors come from the arc shown in the pie. In
sector, vectors are evenly distributed inside the
sector.
txtclassesstring
Text for the 'classes' label over the pies. Default text is
'Classes'.
txtprosstring
Text for the label over the widget that is used to change the
proportions of the classes. Default text is '%'.
txtmapstring
Text for the 'Map' label over the map display. Default text is
'Map'.
Demo 3
distrstring
This parameter selectes the initial shape of the random
distribution that is used to teach the map. Possible shapes
are: square, triangle and circle.
In the demo the selected distribution is shown with light blue
color on the map background.