next up previous contents index
Next: setShufflesetSubShuffle Up: Function Calls To Previous: setPruningFunc

setSubPattern

 

The function call setSubPattern defines the Subpattern-Shifting-Scheme which is described in chapter ``Variable size pattern''. The definition of the Subpattern-Shifting-Scheme has to fit the used pattern file and the architecture of the net. The format of the function call is:

setSubPattern(InputSize, InputStep1, OutputSize1, OutputStep1)

The first dimension of the subpatterns is described by the first four parameters. The order of the parameters is identical to the order in the graphical user interface ( see chapter ``Sub Pattern Handling''). All four parameters are needed for one dimension. If a second dimension exists the four parameters of that dimension are given after the four parameters of the first dimension. This applies to all following dimensions. Function calls could look like this:

setSubPattern (5, 3, 5, 1)
setSubPattern(5, 3, 5, 1, 5, 3, 5, 1)

A one-dimensional subpattern with the InputSize 5, InputStep 3, OutputSize 5, OutputStep 1 is defined by the first call. A two-dimensional subpattern as used in the example network watch net is defined by the second function call. The following text is displayed by the batch interpreter:

Sub-pattern shifting scheme (re)defined
Parameters are: 5 3 5 1 5 3 5 1

The parameters have to be integers.



Niels.Mache@informatik.uni-stuttgart.de
Tue Nov 28 10:30:44 MET 1995