The Complete SPRLIB & ANNLIB

sammon_rand

- initialize a Sammon map with random values

SYNOPSIS

int sammon_rand (seed, min, max)

ARGUMENTS

int seed A seed for the random number generator random_seed.
double min These values indicate the range of the uniform
double max distribution from which the random values are drawn.

RETURNS

TRUE in case an error occured, FALSE otherwise.

FUNCTION

Initializes all elements of map (see SAMMON-VARIABLES) with random values, drawn from a uniform distribution. This function has to be called after sammon_init.

NOTE

If seed is a value other than 0, it is used as a seed. In this way networks can be randomly initialized with the same value in repetitions of experiments.If seed is 0, however, the timer is used (the C-function time(0) ) as a seed.

SEE ALSO

random_seed, ran1, sammon_init

This document was generated using api2html on Thu Mar 5 09:00:00 MET DST 1998