The Complete SPRLIB & ANNLIB

sammon_inject_map

- replace the current Sammon mapping by a DATASET

SYNOPSIS

void sammon_inject_map (dmap, mode)

ARGUMENTS

DATASET *dmap The DATASET structure which is to replace map.
int mode One of SAMMON-MAP-flags, indicating whether to copy dmap input or output vectors to map.

RETURNS

Nothing.

FUNCTION

This function is used to fill the global variable map (see SAMMON-VARIABLES) by a user-supplied dataset dmap. First, some preliminaries are checked: the number of samples has to be the same (i.e. dmap->NumSamples = num_samples) and the dimension has to be equal (i.e. dmap->NumInputs = map_dim). If this checks out, the map variable is filled by copying each of dmap 's sample's input vector. If mode = SAMMON_OUTPUT, the same procedure is followed but each samples' output vector is used.

SEE ALSO

sammon_init, sammon_exit, sammon_extract_map, SAMPLE

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