The following functions are available on the Environment object for algorithmically creating events. See `demo/bp_misc/gen_rnd_prototypes.css' for a CSS script that creates prototypes and random exemplars based on these prototypes using some of the following functions.
ReplicateEvents(int n_replicas, bool make_groups)
PermutedBinary(int pat_no, int n_on)
pat_no
determines which
pattern to use, and n_on
specifies the number of 1's in each
random pattern.
PermutedBinary_MinDist(int pat_no, int n_on, float dist, bool max_correl)
dist
(i.e., all patterns are
separated by at least this minimum distance). If max_correl is set,
this ensures that the maximum correlation between patterns is below the
dist
value.
FlipBits(int pat_no, int n_off, int n_on)
n_off
values of a pattern from 1 to 0, and
n_on
from 0 to 1. In other words, some values that were 1 will
now be 0, and some values that were 0 will now be 1. This is a useful
way of creating random distortions of prototypical patterns.
AddNoise(int pat_no, Random rnd_spec)
pat_no
.
TransformPats(int pat_no, PreProcessVals trans)
pat_no
.
DistMatrix(ostream& strm, int pat_no, bool correl, bool no_names)