krui_err krui_setPatternNo( int patter_no )
sets the current pattern; returns an error code if the pattern number
is invalid.
krui_err krui_deletePattern( void )
deletes the current pattern.
krui_err krui_modifyPattern( void )
modifies the current pattern. Sets the pattern to the current
activation of the units.
krui_err krui_showPattern( int mode )
outputs a pattern on the activation or output values of the
input/output units. The following modes are possible:
OUTPUT_NOTHING
: stores the input pattern in the
activation of the input units.
OUTPUT_ACT
: like OUTPUT_NOTHING
, but stores
also the output pattern in the activation of the output units.
OUTPUT_OUT
: like OUTPUT_ACT
, additionally a new
output value of the output units is computed.
krui_showPattern(...)
draws pattern on the
display. Generates an error code if the number of input and output
units does not correspond with the previously loaded pattern. The
constants of the various modes are defined in glob_typ.h
.
krui_err krui_newPattern( void )
creates a new pattern (an input/output pair).
A pattern can be created by modifying the activation
value of the input/output units.
The function returns an error code if there is insufficient memory or
the number of input/output units is incompatible with the pattern.
Note: krui_newPattern()
switches pattern shuffling off.
For shuffling the new patterns call:
krui_newPattern(...) krui_shufflePatterns( TRUE )
void krui_deleteAllPatterns()
krui_err krui_shufflePatterns( bool on_or_off )
krui_setSeedNo(...)
.
krui_err krui_shuffleSubPatterns(bool on_or_off)
krui_shuffleSubPatterns(TRUE)
switches shuffeling of sub patterns on,krui_shuffleSubPatterns(FALSE)
switches shuffeling of sub patterns off.krui_shuffleSubPatterns (FALSE)
.
int krui_getNoOfPatterns( void )
int krui_getTotalNoOfSubPatterns( void )
krui_err krui_allocNewPatternSet(int *set_no)
krui_err krui_setCurrPatSet(int number)
krui_err krui_deletePatSet(int number)
krui_err krui_GetPatInfo(pattern_set_info *set_info,
pattern_descriptor *pat_info)
krui_err kruiDefShowSubPat(int *insize,int *outsize,int,
int *inpos,int *outpos)
krui_showPattern
.
krui_err krui_DefTrainSubPat(int *insize,int *outsize,int *instep,
int *outstep, int *max_n_pos)
krui_DefTrainSubPat()
has to be called before any training can take place.
krui_err krui_AlignSubPat(int *inpos,int *outpos,int *no)
(krui_DefTrainSubPat)
.
krui_err krui_GetShapeOfSubPattern(int *insize,int *outsize,int *inpos,
int *outpos,int *n_pos)
krui_DefTrainSubPat)
.