The Complete SPRLIB & ANNLIB

eval_set_on_net

- determine the similarity between a (trained) SOM and a dataset

SYNOPSIS

void eval_set_on_net (net, dset, ndim, nx, ny, spcost, mse, gof)

ARGUMENTS

NET *net (Trained) SOM network
DATASET *dset Dataset, for which the distance (similarity or goodness) to the SOM has to be determined
int ndim Number of dimensions of the SOM (1-D or 2-D)
int nx Map size in the first direction
int ny Map size in the second direction (should be 1 for 1-D SOMs)
double **spcost The shortest-path distance matrix of the SOM
double *mse Result 1: the quantization error of the SOM to this dataset
double *gof Result 2: the goodness of the SOM to this dataset

RETURNS

Nothing.

FUNCTION

Evaluates a dataset on a (trained) SOM, and computes both average quantization error and goodness-of-fit between the SOM and the dataset.

NOTE

The function assumes that the matrix of shortest-path distances between a node and every other node in the map spcost is already allocated and determined (using make_spcost_matrix).

SEE ALSO

som_goodness , make_spcost_matrix

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